Print Hive Batch Jobs API

Batch job management endpoints

GitHub OpenAPI

Operations 13

PATCH /v1/batch-jobs/{id}/scheduling-hold Update batch jobs by id scheduling hold #
POST /v1/batch-jobs Create batch jobs #
GET /v1/batch-jobs Get batch jobs #
GET /v1/batch-jobs/{id} Get batch jobs by id #
PATCH /v1/batch-jobs/{id} Update batch jobs by id #
GET /v1/batch-jobs/{id}/dashboard Get batch jobs by id dashboard #
PATCH /v1/batch-jobs/{id}/cancel Update batch jobs by id cancel #
POST /v1/batch-jobs/{id}/cancel Create batch jobs by id cancel #
POST /v1/batch-jobs/empty Create batch jobs empty #
POST /v1/batch-jobs/{id}/jobs Create batch jobs by id jobs #
POST /v1/batch-jobs/{id}/remove-jobs Create batch jobs by id remove jobs #
POST /v1/batch-jobs/{id}/archive Create batch jobs by id archive #
POST /v1/batch-jobs/{id}/unarchive Create batch jobs by id unarchive #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/printhiv3d-com:printhiv3d-com-batch-jobs-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

printhiv3d-com-batch-jobs-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Print Hive API Documentation Batch Jobs API
  description: 'REST API for the Print Hive print farm management platform: printers, print jobs, models, materials, inventory, smart queue, and integrations.'
  version: 1.0.0
servers:
- url: https://api.printhiv3d.com
  description: Production
tags:
- name: Batch Jobs
  description: Batch job management endpoints
paths:
  /v1/batch-jobs/{id}/scheduling-hold:
    patch:
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - held
              additionalProperties: false
              properties:
                held:
                  type: boolean
      parameters:
      - schema:
          type: string
          format: uuid
        in: path
        name: id
        required: true
      responses:
        '200':
          description: Default Response
        default:
          description: Unexpected error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Batch Jobs
      summary: Update batch jobs by id scheduling hold
      x-summary-source: derived
      operationId: patchV1BatchJobsByIdSchedulingHold
      x-operation-id-source: derived
  /v1/batch-jobs:
    post:
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - name
              - organization_id
              properties:
                name:
                  type: string
                description:
                  type: string
                quantity:
                  type: number
                  minimum: 1
                  maximum: 1000
                model_file_id:
                  type: string
                organization_id:
                  type: string
                organizationId:
                  type: string
                printer_ids:
                  type: array
                  items:
                    type: string
                  minItems: 1
                task_id:
                  type: string
                make_id:
                  type: string
                  description: Optional make ID to derive required materials
                max_concurrent_printers:
                  type:
                  - integer
                  - 'null'
                  minimum: 1
                  maximum: 1000
                  description: Maximum printers running jobs from this batch simultaneously
                deadline:
                  type: string
                  format: date-time
                  description: ISO 8601 deadline for production batch completion
                dedicated_printer_ids:
                  type: array
                  items:
                    type: string
                  description: Optional dedicated printer pool for this batch
                items:
                  type: array
                  items:
                    type: object
                    required:
                    - model_file_id
                    - target_count
                    properties:
                      model_file_id:
                        type: string
                      part_name:
                        type: string
                      target_count:
                        type: number
                        minimum: 1
                        maximum: 100000
                      material_policy:
                        type: object
                        description: Item-scoped Smart Queue material policy (Start Print shape)
                      matching_strategies:
                        type: object
                  minItems: 1
                  description: Production batch items (triggers production scheduling mode)
                print_options:
                  type: object
                  properties:
                    enable_ams:
                      type: boolean
                    enable_bed_leveling:
                      type: boolean
                    start_immediately:
                      type: boolean
                    set_printer_ready:
                      type: boolean
                      description: Deprecated compatibility alias for start_immediately
                    force_download:
                      type: boolean
                      default: false
                    timelapse:
                      type: boolean
                      default: false
                    task_layer_inspect:
                      type: boolean
                      default: false
                    auto_assign:
                      type: boolean
                    constraints:
                      type: object
                  additionalProperties: true
                printer_configs:
                  type: object
                  additionalProperties:
                    type: object
                    properties:
                      print_options:
                        type: object
                        properties:
                          enable_ams:
                            type: boolean
                          enable_bed_leveling:
                            type: boolean
                          start_immediately:
                            type: boolean
                          set_printer_ready:
                            type: boolean
                            description: Deprecated compatibility alias for start_immediately
                        additionalProperties: true
      responses:
        '201':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  batch_job:
                    type: object
                    additionalProperties: true
                    properties:
                      id:
                        type: string
                      name:
                        type: string
                      description:
                        type:
                        - string
                        - 'null'
                      total_quantity:
                        type: number
                      completed_quantity:
                        type: number
                      failed_quantity:
                        type: number
                      cancelled_quantity:
                        type: number
                      status:
                        type: string
                      organization_id:
                        type: string
                      created_at:
                        type: string
                      updated_at:
                        type: string
                      deadline:
                        type:
                        - string
                        - 'null'
                      priority_mode:
                        type: string
                      estimated_completion:
                        type:
                        - string
                        - 'null'
                  print_jobs:
                    type: array
                    items:
                      type: object
                      additionalProperties: true
                      properties:
                        id:
                          type: number
                        name:
                          type: string
                        batch_id:
                          type: string
                        printer_id:
                          type:
                          - string
                          - 'null'
                        status:
                          type: string
                  batch_items:
                    type: array
                    items:
                      type: object
                      additionalProperties: true
                      properties:
                        id:
                          type: string
                        model_file_id:
                          type: string
                        part_name:
                          type:
                          - string
                          - 'null'
                        target_count:
                          type: number
                        prints_required:
                          type: number
                        material_policy:
                          type:
                          - object
                          - 'null'
                          additionalProperties: true
                  feasibility:
                    type: object
                    properties:
                      feasible:
                        type: boolean
                      estimated_completion:
                        type: string
                      overproduction_warnings:
                        type: array
                        items:
                          type: object
                          additionalProperties: true
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
                  details:
                    type: object
                    properties:
                      requested_printer_ids:
                        type: array
                        items:
                          type: string
                      eligible_printer_ids:
                        type: array
                        items:
                          type: string
                      filtered:
                        type: object
                        properties:
                          not_found:
                            type: array
                            items:
                              type: string
                          disabled:
                            type: array
                            items:
                              type: string
                          not_ready:
                            type: array
                            items:
                              type: string
                          maintenance:
                            type: array
                            items:
                              type: string
        '409':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
                  reason:
                    type: string
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
      tags:
      - Batch Jobs
      summary: Create batch jobs
      x-summary-source: derived
      operationId: postV1BatchJobs
      x-operation-id-source: derived
    get:
      parameters:
      - schema:
          type: string
        in: query
        name: organizationId
        required: false
      - schema:
          type: string
        in: query
        name: status
        required: false
      - schema:
          type: number
          minimum: 1
          maximum: 100
          default: 50
        in: query
        name: limit
        required: false
      - schema:
          type: number
          minimum: 0
          default: 0
        in: query
        name: offset
        required: false
      - schema:
          type:
          - boolean
          - string
        in: query
        name: archived
        required: false
      - schema:
          type: string
          enum:
          - 7d
          - 30d
          - 90d
          - all
        in: query
        name: range
        required: false
      - schema:
          type: string
          enum:
          - all
          - active
          - on_track
          - at_risk
          - behind
          - completed
        in: query
        name: chip
        required: false
      - schema:
          type: integer
          minimum: 1
        in: query
        name: page
        required: false
      responses:
        '200':
          description: Default Response
        default:
          description: Unexpected error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Batch Jobs
      summary: Get batch jobs
      x-summary-source: derived
      operationId: getV1BatchJobs
      x-operation-id-source: derived
  /v1/batch-jobs/{id}:
    get:
      parameters:
      - schema:
          type: string
        in: query
        name: organizationId
        required: false
      - schema:
          type: string
        in: path
        name: id
        required: true
      responses:
        '200':
          description: Default Response
        default:
          description: Unexpected error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Batch Jobs
      summary: Get batch jobs by id
      x-summary-source: derived
      operationId: getV1BatchJobsById
      x-operation-id-source: derived
    patch:
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - organizationId
              properties:
                organizationId:
                  type: string
                name:
                  type: string
                description:
                  type:
                  - string
                  - 'null'
                deadline:
                  type:
                  - string
                  - 'null'
                dedicated_printer_ids:
                  type:
                  - array
                  - 'null'
                  items:
                    type: string
                max_concurrent_printers:
                  type:
                  - integer
                  - 'null'
                  minimum: 1
                  maximum: 1000
                update_items:
                  type: array
                  items:
                    type: object
                    required:
                    - batch_item_id
                    properties:
                      batch_item_id:
                        type: string
                      target_count:
                        type: number
                        minimum: 1
                      material_policy:
                        type:
                        - object
                        - 'null'
                      matching_strategies:
                        type: object
                add_items:
                  type: array
                  items:
                    type: object
                    required:
                    - model_file_id
                    - target_count
                    properties:
                      model_file_id:
                        type: string
                      part_name:
                        type: string
                      target_count:
                        type: number
                        minimum: 1
                        maximum: 100000
                      material_policy:
                        type: object
                      matching_strategies:
                        type: object
                remove_item_ids:
                  type: array
                  items:
                    type: string
                quantity:
                  type: integer
                  minimum: 1
                  maximum: 100000
      parameters:
      - schema:
          type: string
        in: path
        name: id
        required: true
      responses:
        '200':
          description: Default Response
        default:
          description: Unexpected error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Batch Jobs
      summary: Update batch jobs by id
      x-summary-source: derived
      operationId: patchV1BatchJobsById
      x-operation-id-source: derived
  /v1/batch-jobs/{id}/dashboard:
    get:
      parameters:
      - schema:
          type: string
        in: query
        name: organizationId
        required: true
      - schema:
          type: string
        in: path
        name: id
        required: true
      responses:
        '200':
          description: Default Response
        default:
          description: Unexpected error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Batch Jobs
      summary: Get batch jobs by id dashboard
      x-summary-source: derived
      operationId: getV1BatchJobsByIdDashboard
      x-operation-id-source: derived
  /v1/batch-jobs/{id}/cancel:
    patch:
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                organizationId:
                  type: string
                reason:
                  type: string
                  description: Reason for cancelling the batch job
      parameters:
      - schema:
          type: string
        in: path
        name: id
        required: true
      responses:
        '200':
          description: Default Response
        default:
          description: Unexpected error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Batch Jobs
      summary: Update batch jobs by id cancel
      x-summary-source: derived
      operationId: patchV1BatchJobsByIdCancel
      x-operation-id-source: derived
    post:
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - organizationId
              - mode
              properties:
                organizationId:
                  type: string
                mode:
                  type: string
                  enum:
                  - pending_only
                  - stop_all
      parameters:
      - schema:
          type: string
        in: path
        name: id
        required: true
      responses:
        '200':
          description: Default Response
        default:
          description: Unexpected error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Batch Jobs
      summary: Create batch jobs by id cancel
      x-summary-source: derived
      operationId: postV1BatchJobsByIdCancel
      x-operation-id-source: derived
  /v1/batch-jobs/empty:
    post:
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - name
              - organization_id
              properties:
                name:
                  type: string
                description:
                  type: string
                organization_id:
                  type: string
      responses:
        '200':
          description: Default Response
        default:
          description: Unexpected error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Batch Jobs
      summary: Create batch jobs empty
      x-summary-source: derived
      operationId: postV1BatchJobsEmpty
      x-operation-id-source: derived
  /v1/batch-jobs/{id}/jobs:
    post:
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - job_ids
              - organizationId
              properties:
                job_ids:
                  type: array
                  items:
                    type: number
                  minItems: 1
                organizationId:
                  type: string
      parameters:
      - schema:
          type: string
        in: path
        name: id
        required: true
      responses:
        '200':
          description: Default Response
        default:
          description: Unexpected error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Batch Jobs
      summary: Create batch jobs by id jobs
      x-summary-source: derived
      operationId: postV1BatchJobsByIdJobs
      x-operation-id-source: derived
  /v1/batch-jobs/{id}/remove-jobs:
    post:
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - job_ids
              - organizationId
              properties:
                job_ids:
                  type: array
                  items:
                    type: number
                  minItems: 1
                organizationId:
                  type: string
      parameters:
      - schema:
          type: string
        in: path
        name: id
        required: true
      responses:
        '200':
          description: Default Response
        default:
          description: Unexpected error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Batch Jobs
      summary: Create batch jobs by id remove jobs
      x-summary-source: derived
      operationId: postV1BatchJobsByIdRemoveJobs
      x-operation-id-source: derived
  /v1/batch-jobs/{id}/archive:
    post:
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - organizationId
              properties:
                organizationId:
                  type: string
      parameters:
      - schema:
          type: string
        in: path
        name: id
        required: true
      responses:
        '200':
          description: Default Response
        default:
          description: Unexpected error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Batch Jobs
      summary: Create batch jobs by id archive
      x-summary-source: derived
      operationId: postV1BatchJobsByIdArchive
      x-operation-id-source: derived
  /v1/batch-jobs/{id}/unarchive:
    post:
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - organizationId
              properties:
                organizationId:
                  type: string
      parameters:
      - schema:
          type: string
        in: path
        name: id
        required: true
      responses:
        '200':
          description: Default Response
        default:
          description: Unexpected error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Batch Jobs
      summary: Create batch jobs by id unarchive
      x-summary-source: derived
      operationId: postV1BatchJobsByIdUnarchive
      x-operation-id-source: derived
components:
  schemas:
    Error:
      type: object
      description: 'Consistent Print Hive API error body: a machine-readable error code and a human-readable message.'
      properties:
        error:
          type: string
          description: Machine-readable error code.
        message:
          type: string
          description: Human-readable explanation of the failure.
      required:
      - error
      - message
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
    apiKey:
      type: apiKey
      in: header
      name: x-api-key