PrintersApi
Method | HTTP request | Description |
---|---|---|
CreatePrinter | POST /api/web/v1/printers | Creates a printer. |
DeletePrinter | DELETE /api/web/v1/printers/{printerId} | Deletes a printer by ID. |
DeletePrinterWithTenantId | DELETE /api/web/v1/printers/{printerId}/{tenantId} | Deletes a lost printer by printer id and lost tenant ID. |
GetPrinters | GET /api/web/v2/printers | Gets all printers. |
PrintersSummary | GET /api/web/v1/printers/summary | Retrieve count of registered printers |
ReadPrinter | GET /api/web/v1/printers/{printerId} | Return a specified printer. |
ReadPrinterByDeviceId | GET /api/web/v2/printers/{deviceId} | Return a specified printer using printer device id. |
ReadPrinterPreferences | GET /api/web/v1/printers/{printerId}/preferences | Get the preferences for the specified printer. |
ReadPrinters | GET /api/web/v1/printers | Gets all printers. |
ReplacePrinter | PUT /api/web/v1/printers/{printerId} | Update the specified printer. |
ReplacePrinterPreferences | PUT /api/web/v1/printers/{printerId}/preferences | Update the preferences for the specified printer. |
CreatePrinter
ResourceIdResponse CreatePrinter (Printer printer)
Creates a printer.
Using the CreatePrinterWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
Parameters
Name | Type | Description | Notes |
---|---|---|---|
printer | Printer |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json
HTTP response details
Status code | Description | Response headers |
---|---|---|
202 | Accepted | - |
400 | Bad request | - |
401 | Authorization information is missing or invalid | - |
409 | Conflict, printer already exists with the given Name or Device ID. | - |
500 | Unexpected error | - |
DeletePrinter
void DeletePrinter (string printerId)
Deletes a printer by ID.
Example
Using the DeletePrinterWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
Parameters
Name | Type | Description | Notes |
---|---|---|---|
printerId | string | The unique 32-36 character id obtained from the Get All Printers request. Example - 0b0db90a-6091-416f-8559-2f2181e941c3 |
Return type
void (empty response body)
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | Bad request | - |
401 | Authorization information is missing or invalid | - |
404 | The specified resource was not found | - |
500 | Unexpected error | - |
DeletePrinterWithTenantId
void DeletePrinterWithTenantId (string printerId, string tenantId)
Deletes a lost printer by printer id and lost tenant ID.
Example
Using the DeletePrinterWithTenantIdWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
Parameters
Name | Type | Description | Notes |
---|---|---|---|
printerId | string | Printer ID | |
tenantId | string | Printer ID |
Return type
void (empty response body)
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
HTTP response details
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
GetPrinters
List<Printer> GetPrinters ()
Gets all printers.
Example
Using the GetPrintersWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
Parameters
This endpoint does not need any parameter.
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | Bad request | - |
401 | Authorization information is missing or invalid | - |
500 | Unexpected error | - |
PrintersSummary
PrinterSummaryResponse PrintersSummary ()
Retrieve count of registered printers
Example
Using the PrintersSummaryWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
Parameters
This endpoint does not need any parameter.
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
Status code | Description | Response headers |
---|---|---|
200 | Successfully retreived printer summary | - |
400 | Bad request | - |
401 | Authorization information is missing or invalid | - |
500 | Unexpected error | - |
ReadPrinter
Printer ReadPrinter (string printerId)
Return a specified printer.
Example
Using the ReadPrinterWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
Parameters
Name | Type | Description | Notes |
---|---|---|---|
printerId | string | The unique 32-36 character id obtained from the Get All Printers request. Example - 0b0db90a-6091-416f-8559-2f2181e941c3 |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | Bad request | - |
401 | Authorization information is missing or invalid | - |
404 | The specified resource was not found | - |
500 | Unexpected error | - |
ReadPrinterByDeviceId
Printer ReadPrinterByDeviceId (string deviceId)
Return a specified printer using printer device id.
Example
Using the ReadPrinterByDeviceIdWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
Parameters
Name | Type | Description | Notes |
---|---|---|---|
deviceId | string | The unique 16 character id obtained from the printer LCD. Example - F71523262A998271 |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | Bad request | - |
401 | Authorization information is missing or invalid | - |
404 | The specified resource was not found | - |
500 | Unexpected error | - |
ReadPrinterPreferences
PrinterPreferences ReadPrinterPreferences (string printerId)
Get the preferences for the specified printer.
Example
Using the ReadPrinterPreferencesWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
Parameters
Name | Type | Description | Notes |
---|---|---|---|
printerId | string | The unique 32-36 character id obtained from the Get All Printers request. Example - 0b0db90a-6091-416f-8559-2f2181e941c3 |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | Bad request | - |
401 | Authorization information is missing or invalid | - |
404 | The specified resource was not found | - |
500 | Unexpected error | - |
ReadPrinters
List<Printer> ReadPrinters (string fields = null, bool? withStatus = null)
Gets all printers.
Example
Using the ReadPrintersWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
Parameters
Name | Type | Description | Notes |
---|---|---|---|
fields | string | The model properties to return. | [optional] |
withStatus | bool? | Indicates if the current status of each printer is retrieved. Defaults to false if not specified. | [optional] |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | Bad request | - |
401 | Authorization information is missing or invalid | - |
500 | Unexpected error | - |
ReplacePrinter
void ReplacePrinter (string printerId, Printer printer)
Update the specified printer.
Example
Using the ReplacePrinterWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
Parameters
Name | Type | Description | Notes |
---|---|---|---|
printerId | string | The unique 32-36 character id obtained from the Get All Printers request. Example - 0b0db90a-6091-416f-8559-2f2181e941c3 | |
printer | Printer |
Return type
void (empty response body)
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json
HTTP response details
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | Bad request | - |
401 | Authorization information is missing or invalid | - |
404 | The specified resource was not found | - |
500 | Unexpected error | - |
ReplacePrinterPreferences
void ReplacePrinterPreferences (string printerId, PrinterPreferences printerPreferences)
Update the preferences for the specified printer.
Example
Using the ReplacePrinterPreferencesWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
Parameters
Name | Type | Description | Notes |
---|---|---|---|
printerId | string | The unique 32-36 character id obtained from the Get All Printers request. Example - 0b0db90a-6091-416f-8559-2f2181e941c3 | |
printerPreferences | PrinterPreferences |
Return type
void (empty response body)
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json
HTTP response details
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | Bad request | - |
401 | Authorization information is missing or invalid | - |
404 | The specified resource was not found | - |
500 | Unexpected error | - |