Skip to main content

PrintQueueApi

MethodHTTP requestDescription
cancel_all_active_print_jobsPOST /api/web/v1/prints/{printerId}/cancelAllActivePrintsCancel all active jobs for a given printer.
delete_print_jobDELETE /api/web/v1/prints/{printJobId}Delete the given print job.
get_paginated_print_jobsPOST /api/web/v1/prints/paginatedView print jobs in paginated form.
get_print_jobGET /api/web/v1/prints/{printJobId}Get the given print job.
get_print_jobsGET /api/web/v1/printsList all print jobs.

cancel_all_active_print_jobs

cancel_all_active_print_jobs(printer_id)

Cancel all active jobs for a given printer.

This API cancels the ongoing job on printer. This should be used if any job is stuck on printer i.e. the printer is not processing the job anymore and is stuck in busy state for more than 5 minutes.

  • Api Key Authentication (AdminAPIAuthentication):

Parameters

NameTypeDescriptionNotes
printer_idstrPrinter Id. This can be obtained from the id value in the response of Return a Specified Printer API call.

Return type

void (empty response body)

Authorization

AdminAPIAuthentication

HTTP request headers

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

HTTP response details

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

delete_print_job

delete_print_job(print_job_id)

Delete the given print job.

Example

  • Api Key Authentication (AdminAPIAuthentication):

Parameters

NameTypeDescriptionNotes
print_job_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
200OK-
401Authorization information is missing or invalid-
404The specified resource was not found-
500Unexpected error-

get_paginated_print_jobs

PrintQueuePaging get_paginated_print_jobs(search_parms)

View print jobs in paginated form.

Example

  • Api Key Authentication (AdminAPIAuthentication):

Parameters

NameTypeDescriptionNotes
search_parmsSearchParms

Return type

PrintQueuePaging

Authorization

AdminAPIAuthentication

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200OK-
401Authorization information is missing or invalid-
500Unexpected error-

get_print_job

PrintJob get_print_job(print_job_id)

Get the given print job.

Example

  • Api Key Authentication (AdminAPIAuthentication):

Parameters

NameTypeDescriptionNotes
print_job_idstrPrint ID

Return type

PrintJob

Authorization

AdminAPIAuthentication

HTTP request headers

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

HTTP response details

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

get_print_jobs

List[PrintJob] get_print_jobs()

List all print jobs.

Example

  • Api Key Authentication (AdminAPIAuthentication):

Parameters

This endpoint does not need any parameter.

Return type

List[PrintJob]

Authorization

AdminAPIAuthentication

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200OK-
401Authorization information is missing or invalid-
500Unexpected error-