Printer Event API
POST /api/v1/octo/printer_events/
Request
Headers
Authorization: A required header with the authentication token for the printer.
Body
JSON representation of the [PrinterEvent] object.
event_type: Astring. The type of the event.event_class: Astring. The class of the event.event_title: Astring. The title of the event.event_text: Astring. The detailed text of the event.info_url: Astring(optional). URL for more information related to the event.notify: Aboolean(optional). If set totrue, a notification task will be created.snapshot: Afile(optional). An image file related to the event.
Response
Success
-
Code:
200 -
Body: A JSON object with a success message.
{
"result": "ok"
}
GET /api/v1/octo/printer_events/
Request
Headers
Authorization: A required header with the authentication token for the printer.
Response
Success
- Code:
200 - Body: A JSON array containing serialized [PrinterEvent] objects.