If any device with DeviceGUID is found the device is updated, otherwise a new device is added if it is part of the license. If the DeviceGUID is not part of the license an error is returned.
URL:
POST http://api.aurelon.com/api/v2/configuration/device
Request Headers:
Content-Type : application/json
MisKey : see Authentication
HardwareHash : see Authentication
SerialNumber : see Authentication
ApplicationVersion : see Authentication
Request Body:
JSON object containing:
- DeviceGUID – required – the Device GUID
- ComputerGUID – required – the RIP on which this device is installed
- Name
- Type
- MediaType
- MediaSize
- MediaSource
- Manufacturer
- Model
- DriverID – unique driver ID from the HUB database
- ConnectionURI
Response:
Content type application/json containing the result of the operation.
Success:
200 OK : {“Message”: “Device successfully saved”}
Error:
- 400 Bad Request : {“Message”:””DeviceGUID” required”}
- 400 Bad Request : {“Message”:””ComputerGUID” required”}
- 401 Unauthorised : {“Message”:”Invalid HardwareHash”}
- 401 Unauthorised : {“Message”:”Invalid MisKey”}
- 401 Unauthorised : {“Message”: “”MisKey” or “HardwareHash”, “SerialNumber” and “ApplicationVersion” header are required”}
- 415 Unsupported Media Type : {“Message”:”Expected type: application/json”}
- 500 Internal Server Error : {“Message”:”Internal Server Error”}