Creates a printer.
POST/api/web/v1/printers
Creates a printer.
Request
- application/json
Body
required
Total cards successfully printed by printer.
number of cards remaining before cleaning
Possible values: Value must match regular expression [a-fA-F0-9]{16}
Printers unique device ID obtained from the printer LCD.
Optional physical location of the printer.
The printer name
A flag used to determine if the printer has PTP ribbon or not (Ignore this field in the API request or response)
percentage of retransfer roll remaining in printer
ID of the cloud enabled ribbon installed in the printer (Ignore this field in the API request or response)
percentage of ribbon remaining in printer
A flag used to determine if the smart card simulator needs to be invoked
Possible values: [BUSY
, IDLE
, TIMEOUT
, INVALID
]
Responses
- 202
- 400
- 401
- 409
- 500
Accepted
- application/json
- Schema
- Example (from schema)
Schema
Possible values: Value must match regular expression [a-fA-F0-9-]{32,36}
{
"id": "aa123-bb456-cc789-dd890-ee123-fffee4",
"link": "http://localhost/my-resource/aa123-bb456-cc789-dd890-ee123-fffee4"
}
Bad request
- application/json
- Schema
- Example (from schema)
Schema
The server error code
A human-readable representation of the error
The target of the error
{
"code": "string",
"message": "string",
"target": "string"
}
Authorization information is missing or invalid
- application/json
- Schema
- Example (from schema)
Schema
The server error code
A human-readable representation of the error
The target of the error
{
"code": "string",
"message": "string",
"target": "string"
}
Conflict, printer already exists with the given Name or Device ID.
- application/json
- Schema
- Example (from schema)
Schema
The server error code
A human-readable representation of the error
The target of the error
{
"code": "string",
"message": "string",
"target": "string"
}
Unexpected error
- application/json
- Schema
- Example (from schema)
Schema
The server error code
A human-readable representation of the error
The target of the error
{
"code": "string",
"message": "string",
"target": "string"
}