Skip to main content

BasicPrintApi

MethodHTTP requestDescription
cancelPrintDELETE /api/web/v1/printers/print/{printStatusId}Cancel an executing print job.
getPrintCountsGET /api/web/v1/printcountsGet counts for different prints.
getPrintStatusGET /api/web/v1/printers/print/{printStatusId}Retrieve print job status.
printPOST /api/web/v1/printers/{printerId}/printPerform basic print job.
updatePrintPATCH /api/web/v1/printers/print/{printStatusId}Updates an executing print job.

cancelPrint

cancelPrint(printStatusId)

Cancel an executing print job.

Parameters

NameTypeDescriptionNotes
printStatusIdStringPrint ID

Return type

null (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-

getPrintCounts

PrintCountResponse getPrintCounts()

Get counts for different prints.

Example

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-

getPrintStatus

BasicPrintResponse getPrintStatus(printStatusId)

Retrieve print job status.

Example

Parameters

NameTypeDescriptionNotes
printStatusIdStringPrint 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-

print

PrintOperationResponse print(printerId, basicPrintRequest)

Perform basic print job.

Example

Parameters

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

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-

updatePrint

PrintOperationResponse updatePrint(printStatusId, basicPrintUpdateRequest)

Updates an executing print job.

Example

Parameters

NameTypeDescriptionNotes
printStatusIdStringPrint ID
basicPrintUpdateRequestBasicPrintUpdateRequest

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-