Add Job with Document

Adds a job build from a job.xml and one document. This call will replace the link the embedded document with the DocumentGUID that’s assigned to the document. The DocumentGUID is returned in the response.

URL:

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

Request Headers:

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

Request Body:

Form data 1: required

  • Name: Job.xml
  • Content-Type: application/xml
  • Job XML (see Job XML specification)

Form data 2: required

  • Name: Original name of the document
  • Content-Type: application/pdf or image/{format}
  • Binary content of the document

Response:

Content type application/json containing the result of the operation.

Success:

200 OK : {“Message”:”Job successfully saved”, “DocumentGUID”:”00000000-0000-0000-0000-000000000000″}

Error:

  • 400 Bad Request : {“Message”:””DeviceGUID” value required in xml”}
  • 401 Unauthorised : {“Message”:”Message”:”Invalid HardwareHash”}
  • 401 Unauthorized : {“Message”:”Invalid MisKey”}
  • 401 Unauthorized : {“Message”:””MisKey” or “HardwareHash”, “SerialNumber” and “ApplicationVersion” header are required”}
  • 404 Not Found : {“Message”:”DeviceGUID is not found”}
  • 415 Unsupported Media Type : {“Message”:”This request is not properly formatted”}
  • 500 Internal Server Error : {“Message”:”Internal Server Error”}

Example of Job XML:here