Printer API
GET /api/v1/printers/β
Requestβ
Query parametersβ
with_archived: Boolean. Default tofalse. Whether or not archived printer need to be returned.
Responseβ
Successβ
- Code:
200 - Body: A
ListofPrinterobjects.
GET /api/v1/printers/{:id}/β
Requestβ
Query parametersβ
None.
Responseβ
Successβ
- Code:
200 - Body: A
Printerobject.
Not foundβ
When the printer specified by the {:id} doesn't exist, or the access is not authorized by the authenticated user.
- Code:
404
PATCH /api/v1/printers/{:id}/β
Partial update of the Printer object specified by {:id}
Requestβ
Query parametersβ
None.
Bodyβ
JSON representation of the Printer object, except the following read-only fields:
id.created_at. Always the timestamp when the printer is created.not_watching_reason. Automatically derived based on the watching rules.pic. Check the Websocket for how this field is set.status. Check the Websocket for how this field is set.settings. Check the Websocket for how this field is set.current_print. Check the Websocket for how this field is set.normalized_p. Check the Websocket for how this field is set.auth_token. System-generated.
Responseβ
Successβ
- Code:
200 - Body: A
Printerobject.
Not foundβ
When the printer specified by the {:id} doesn't exist, or the access is not authorized by the authenticated user.
- Code:
404
DELETE /api/v1/printers/{:id}/β
Delete the Printer object specified by {:id}
Responseβ
Successβ
- Code:
200 - Body: Empty.
Not foundβ
When the printer specified by the {:id} doesn't exist, or the access is not authorized by the authenticated user.
- Code:
404
POST /api/v1/printers/{:id}/cancel_printβ
Cancel the current print on the Printer object specified by {:id}
Requestβ
None.
Responseβ
Successβ
- Code:
200 - Body: An
Objectsucceeded.trueif the cancel command was successfully sent to the printer. Please note this doesn't mean the cancel command is successfully executed in the client.falseif the command failed for any reason, such as the printer is not currently printing.printerThe updatedPrinterobject.
Not foundβ
When the printer specified by the {:id} doesn't exist, or the access is not authorized by the authenticated user.
- Code:
404
POST /api/v1/printers/{:id}/pause_printβ
Pause the current print on the Printer object specified by {:id}
Requestβ
None.
Responseβ
Successβ
- Code:
200 - Body: An
Objectsucceeded.trueif the pause command was successfully sent to the printer. Please note this doesn't mean the cancel command is successfully executed in the client.falseif the command failed for any reason, such as the printer is not currently printing.printerThe updatedPrinterobject.
Not foundβ
When the printer specified by the {:id} doesn't exist, or the access is not authorized by the authenticated user.
- Code:
404
POST /api/v1/printers/{:id}/resume_printβ
Resume the current print on the Printer object specified by {:id}
Requestβ
None.
Responseβ
Successβ
- Code:
200 - Body: An
Objectsucceeded.trueif the resume command was successfully sent to the printer. Please note this doesn't mean the cancel command is successfully executed in the client.falseif the command failed for any reason, such as the printer is not currently printing.printerThe updatedPrinterobject.
Not foundβ
When the printer specified by the {:id} doesn't exist, or the access is not authorized by the authenticated user.
- Code:
404
POST /api/v1/printers/{:id}/mute_current_printβ
Mute (temporarily disable failure detection for the rest of the print) the current print on the Printer object specified by {:id}
Requestβ
None.
Responseβ
Successβ
- Code:
200 - Body: An
Objectsucceeded.trueif the mute command was successfully sent to the printer. Please note this doesn't mean the cancel command is successfully executed in the client.falseif the command failed for any reason, such as the printer is not currently printing.printerThe updatedPrinterobject.
Not foundβ
When the printer specified by the {:id} doesn't exist, or the access is not authorized by the authenticated user.
- Code:
404
POST /api/v1/printers/{:id}/acknowledge_alertβ
Acknowledge an failure alert for the current print on the Printer object specified by {:id}
Requestβ
None.
Responseβ
Successβ
- Code:
200 - Body: An
Objectsucceeded.trueif the acknowledge command was successfully sent to the printer. Please note this doesn't mean the cancel command is successfully executed in the client.falseif the command failed for any reason, such as the printer is not currently printing.printerThe updatedPrinterobject.
Not foundβ
When the printer specified by the {:id} doesn't exist, or the access is not authorized by the authenticated user.
- Code:
404