API Endpoint Reference / Print Jobs

Move queued print jobs to the front of a queue

POST https://api.printhiv3d.com/v1/print-jobs/reorder

Operation ID reorderPrintJobs. Requires the control API key scope.

Requires control scope. Moves the listed jobs to the front of the selected queue in the order given. Unlisted jobs stay behind them in their previous relative order. Send one ID to move one job to the front. All job IDs must belong to the selected queue and be QUEUED.

Request body

Content type application/json.

Send one of these shapes.

Option 1

FieldTypeRequiredDescription
ordered_job_idsinteger[]YesQueued job IDs to move to the front, in the desired order.
scope"printer"Yes
printer_iduuidYesThe printer whose queue to reorder.

Option 2

FieldTypeRequiredDescription
ordered_job_idsinteger[]YesQueued job IDs to move to the front, in the desired order.
scope"global"Yes

Responses

StatusDescription
200Default Response
400The request is malformed. Send unique integer job IDs and a printer ID for printer scope.
401Default Response
403The API key lacks control scope or the caller cannot use the organization.
404At least one job was not found in the organization.
409At least one job is no longer QUEUED or does not belong to the selected queue. The reorder did not run.
500Default Response
defaultDefault Response

200 response fields

FieldTypeRequiredDescription
successtrueYes

400 response fields

FieldTypeRequiredDescription
errorstringNo
messagestringNo
requestIdstringNo
reason"duplicate_job_ids"No

401 response fields

FieldTypeRequiredDescription
errorstringNo
messagestringNo
requestIdstringNo

403 response fields

FieldTypeRequiredDescription
errorstringNo
messagestringNo
requestIdstringNo
codestringNo

404 response fields

FieldTypeRequiredDescription
errorstringNo
messagestringNo
requestIdstringNo
reason"job_not_found"No

409 response fields

FieldTypeRequiredDescription
errorstringNo
messagestringNo
requestIdstringNo
reason"job_not_queued" | "job_queue_changed"No

500 response fields

FieldTypeRequiredDescription
errorstringNo
messagestringNo
requestIdstringNo

default response fields

FieldTypeRequiredDescription
errorstringNo
messagestringNo
requestIdstringNo

Example 200 response

{
  "success": true
}