Print API
GET /api/v1/prints/
Request
Query parameters
filter: AnEnum.cancelled: Return only the prints that are cancelled.finished: Return only the prints that finish successfully.need_alert_overwrite: Return only the prints withalert_overwrite == null.need_print_shot_feedback: Return only the prints that has associated ['PrintShotFeedback](/docs/api/api-objects/#printshotfeedback) objects but none of them hasanswer` set.
sorting: AnEnum.date_desc: The returnedPrintobjects are sorted by start time in descending order.date_asc: The returnedPrintobjects are sorted by start time in ascending order.
start: The number of objects at the beginning of the result to skip. Not valid ifsortingis absent. For pagination.limit: The number of objects to return. Not valid ifsortingis absent. For pagination.
Response
Success
- Code:
200 - Body: A
ListofPrintobjects.
GET /api/v1/print/{:id}/
Request
Query parameters
None.
Response
Success
- Code:
200 - Body: A
Printerobject.
Not found
When the print specified by the {:id} doesn't exist, or the access is not authorized by the authenticated user.
- Code:
404
PATCH /api/v1/prints/{:id}/
Partial update of the Print object specified by {:id}
Request
Query parameters
None.
Body
JSON representation of the Print object, except the following read-only fields:
id.printer. Always the printer on which it's printed on (duh!).filename. Maybe an argument can be made that the G-Code file name can be changed once the print has started. But we haven't seen this case in the real world yet.started_at. Always the timestamp when the print starts.finished_at. Always the timestamp when the print finishes successfully.cancelled_at. Always the timestamp when the print is cancelled.uploaded_at. Always the timestamp when the time-lapse video is uploaded.alerted_at. Check the Websocket for how this field is set.alert_acknowledged_at. Automatically set based on the rules. CheckPrintfor details.alert_muted_at. Automatically set based on the rules. CheckPrintfor details.paused_at. Automatically set based on the rules. CheckPrintfor details.video_url. Automatically generated when a time-lapse is generated and saved to the storage.tagged_video_url. Automatically generated when a time-lapse is generated and saved to the storage.poster_url. Automatically generated when a time-lapse is generated and saved to the storage.prediction_json_url. Automatically generated when a time-lapse is generated and saved to the storage.
Response
Success
- Code:
200 - Body: A
Printobject.
Not found
When the print specified by the {:id} doesn't exist, or the access is not authorized by the authenticated user.
- Code:
404
DELETE /api/v1/prints/{:id}/
Delete the Print object specified by {:id}
Response
Success
- Code:
200 - Body: Empty.
Not found
When the print specified by the {:id} doesn't exist, or the access is not authorized by the authenticated user.
- Code:
404
GET /api/v1/prints/{:id}/prediction_json
Retrieve the prediction (failure detection) json associated with the Print specified by {:id}
Response
Success
- Code:
200 - Body: A JSON that represents the frame-by-frame predictions.
Not found
When the print specified by the {:id} doesn't exist, or the access is not authorized by the authenticated user.
- Code:
404