Add/Update RIP configuration

RIP configurations are linked to a specific computer, which will always be identified by its ComputerGUID. If any RIP configuration file with the ComputerGUID is found, then the RIP configuration file is updated. Otherwise, a new RIP configuration file is added.

URL:

POST http://api.aurelon.com/api/v2/configuration

Request Headers:

Content-Type : multipart/form-data
HardwareHash : see Authentication
SerialNumber : see Authentication
ApplicationVersion : see Authentication

Request Body:

Form data 1: required

  • Name: JsonString
  • Content-Type: application/json
  • {“ComputerGUID”:”00000000-0000-0000-0000-000000000000″}
    The GUID of the RIP Computer is passed as ComputerGUID

Form data 2: required

  • Name: RIP.xml (input file element can have any name)
  • Content-Type: application/xml
  • The XML file of the configuration

Response:

Content type of the response is in JSON format.

Success:

200 OK : {“Message”: “Configuration successfully added”}

Error:

  • 400 Bad Request : {“Message”:””ComputerGUID” required”}
  • 400 Bad Request : {“Message”:””Validation of ComputerGUID failed”}
  • 401 Unauthorised : {“Message”:”Invalid HardwareHash”}
  • 401 Unauthorised : {“Message”: “”MisKey” or “HardwareHash”, “SerialNumber” and “ApplicationVersion” header are required”}
  • 415 Unsupported Media Type : {“Message”:”This request is not properly formatted”}
  • 500 Internal Server Error : {“Message”:”Internal Server Error”}