Pause job dispatch for a printer
POST
/api/v1/printers/{printer_id}/pause
const url = 'https://example.com/api/v1/printers/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/pause';const options = {method: 'POST', headers: {'X-Label-Hub-Key': '<X-Label-Hub-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/printers/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/pause \ --header 'X-Label-Hub-Key: <X-Label-Hub-Key>'Sets printer_state.paused = true and pauses the queue worker. New jobs can still be queued but the worker will not dispatch them until the printer is resumed. Idempotent — pausing an already-paused printer returns 204 without error.
Authorizations
Abschnitt betitelt „Authorizations“Parameters
Abschnitt betitelt „Parameters“Path Parameters
Abschnitt betitelt „Path Parameters“printer_id
required
Printer Id
string format: uuid
Responses
Abschnitt betitelt „Responses“Successful Response
Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Example generated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}