Skip to main content

BasicPrintApi

MethodHTTP requestDescription
call_printPOST /api/web/v1/printers/{printerId}/printPerform basic print job.
cancel_printDELETE /api/web/v1/printers/print/{printStatusId}Cancel an executing print job.
get_print_countsGET /api/web/v1/printcountsGet counts for different prints.
get_print_statusGET /api/web/v1/printers/print/{printStatusId}Retrieve print job status.
update_printPATCH /api/web/v1/printers/print/{printStatusId}Updates an executing print job.

call_print

PrintOperationResponse call_print(printer_id, basic_print_request)

Perform basic print job.

  • Api Key Authentication (AdminAPIAuthentication):

Parameters

NameTypeDescriptionNotes
printer_idstrThe unique 32-36 character id obtained from the Get All Printers request. Example - 0b0db90a-6091-416f-8559-2f2181e941c3
basic_print_requestBasicPrintRequest

Return type

PrintOperationResponse

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Accepted-
400Bad request-
401Authorization information is missing or invalid-
404The specified resource was not found-
500Unexpected error-

cancel_print

cancel_print(print_status_id)

Cancel an executing print job.

Example

  • Api Key Authentication (AdminAPIAuthentication):

Parameters

NameTypeDescriptionNotes
print_status_idstrPrint ID

Return type

void (empty response body)

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
204No Content-
400Bad request-
401Authorization information is missing or invalid-
404The specified resource was not found-
500Unexpected error-

get_print_counts

PrintCountResponse get_print_counts()

Get counts for different prints.

Example

  • Api Key Authentication (AdminAPIAuthentication):

Parameters

This endpoint does not need any parameter.

Return type

PrintCountResponse

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Ok-
400Bad request-
401Authorization information is missing or invalid-
404The specified resource was not found-
500Unexpected error-

get_print_status

BasicPrintResponse get_print_status(print_status_id)

Retrieve print job status.

Example

  • Api Key Authentication (AdminAPIAuthentication):

Parameters

NameTypeDescriptionNotes
print_status_idstrPrint ID

Return type

BasicPrintResponse

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Ok-
400Bad request-
401Authorization information is missing or invalid-
404The specified resource was not found-
500Unexpected error-

update_print

PrintOperationResponse update_print(print_status_id, basic_print_update_request)

Updates an executing print job.

Example

  • Api Key Authentication (AdminAPIAuthentication):

Parameters

NameTypeDescriptionNotes
print_status_idstrPrint ID
basic_print_update_requestBasicPrintUpdateRequest

Return type

PrintOperationResponse

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
202Accepted-
400Bad request-
401Authorization information is missing or invalid-
404The specified resource was not found-
500Unexpected error-