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
| Field | Type | Required | Description |
|---|
ordered_job_ids | integer[] | Yes | Queued job IDs to move to the front, in the desired order. |
scope | "printer" | Yes | |
printer_id | uuid | Yes | The printer whose queue to reorder. |
Option 2
| Field | Type | Required | Description |
|---|
ordered_job_ids | integer[] | Yes | Queued job IDs to move to the front, in the desired order. |
scope | "global" | Yes | |
Responses
| Status | Description |
|---|
200 | Default Response |
400 | The request is malformed. Send unique integer job IDs and a printer ID for printer scope. |
401 | Default Response |
403 | The API key lacks control scope or the caller cannot use the organization. |
404 | At least one job was not found in the organization. |
409 | At least one job is no longer QUEUED or does not belong to the selected queue. The reorder did not run. |
500 | Default Response |
default | Default Response |
200 response fields
| Field | Type | Required | Description |
|---|
success | true | Yes | |
400 response fields
| Field | Type | Required | Description |
|---|
error | string | No | |
message | string | No | |
requestId | string | No | |
reason | "duplicate_job_ids" | No | |
401 response fields
| Field | Type | Required | Description |
|---|
error | string | No | |
message | string | No | |
requestId | string | No | |
403 response fields
| Field | Type | Required | Description |
|---|
error | string | No | |
message | string | No | |
requestId | string | No | |
code | string | No | |
404 response fields
| Field | Type | Required | Description |
|---|
error | string | No | |
message | string | No | |
requestId | string | No | |
reason | "job_not_found" | No | |
409 response fields
| Field | Type | Required | Description |
|---|
error | string | No | |
message | string | No | |
requestId | string | No | |
reason | "job_not_queued" | "job_queue_changed" | No | |
500 response fields
| Field | Type | Required | Description |
|---|
error | string | No | |
message | string | No | |
requestId | string | No | |
default response fields
| Field | Type | Required | Description |
|---|
error | string | No | |
message | string | No | |
requestId | string | No | |
Example 200 response
{
"success": true
}