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}