Create a ScannerType
POST/scanner
Creates a new ScannerType and attaches it to the requested Company.
Request
- application/json
Body
Input data
Possible values: <= 255 characters
The name of the ScannerType.
Possible values: <= 65535 characters
The human readable description of the ScannerType.
Possible values: >= 6 characters
and <= 255 characters
The username to login into the Scanners.
Possible values: >= 4 characters
and <= 255 characters
The password to login into the Scanners.
Possible values: <= 255
Default value: 115
The bitmap for visibility options in the Scanners of the ScannerType, e.g. hiding counters.
Default value: 68719476735
The bitmap for which barcode types are scannable.
The expire date of the ScannerType, i.e. when all the Scanners of the ScannerType should expire.
The guids of the Product Types that needs to be attached to the ScannerType. This only accept guids of Product Types of the requested Company, except for Admins.
Responses
- 201
- 403
- 404
- 406
ScannerType created.
- application/json
- Schema
- Example (from schema)
Schema
The guid of the ScannerType.
The guid of the Company this ScannerType is associated with.
The guid of the Event this ScannerType is associated with.
Possible values: <= 255 characters
The name of the ScannerType.
Possible values: <= 65535 characters
The human readable description of the ScannerType.
Possible values: >= 6 characters
and <= 255 characters
The username to login into the Scanners.
Possible values: >= 4 characters
and <= 255 characters
The password to login into the Scanners.
Possible values: <= 255
Default value: 115
The bitmap for visibility options in the Scanners of the ScannerType, e.g. hiding counters.
Default value: 68719476735
The bitmap for which barcode types are scannable.
The expire date of the ScannerType, i.e. when all the Scanners of the ScannerType should expire.
The QR code contents for quick login.
The time it was created.
The time it was last updated.
The time it was deleted.
{
"guid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"company_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"event_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"description": "string",
"username": "string",
"password": "string",
"visibility": 115,
"scan_types": 68719476735,
"expires_at": "2023-08-01T14:40:24+00:00",
"QR": "string",
"created_at": "2023-08-01T14:40:24+00:00",
"updated_at": "2023-08-01T14:40:24+00:00",
"deleted_at": "2023-08-01T14:40:24+00:00"
}
Unauthorized. You do not have permission to manage ScannerTypes of the Company.
- application/json
- Schema
- Example (from schema)
Schema
The general error code.
The exact reason of failure.
{
"error_code": "string",
"error_description": "string"
}
Company not found.
- application/json
- Schema
- Example (from schema)
Schema
The general error code.
The exact reason of failure.
{
"error_code": "string",
"error_description": "string"
}
Request is invalid, see error context for validation errors.
- application/json
- Schema
- Example (from schema)
Schema
The general error code.
The exact reason of failure.
{
"error_code": "string",
"error_description": "string"
}