Add or replace the actual content file (resource) of an existing document. If DocumentGUID does not exist – error will be shown (DocumentGUID – returned by api call Create Document).
URL:
POST: http://api.aurelon.com/api/v2/document/<DocumentGUID>
Request Headers:
Content-Type : application/octet-stream
MisKey : see Authentication
Request Body:
Binary content of the document
Response:
Content type application/json containing the result of the operation.
Success:
200 OK : {“Message”:”Document resource successfully saved”}
Error:
- 400 Bad Request : {“Message”:””DocumentGUID” value required”}
- 401 Unauthorised : {“Message”:”Invalid MisKey”}
- 401 Unauthorised : {“Message”: “”MisKey” or “HardwareHash”, “SerialNumber” and “ApplicationVersion” header are required”}
- 404 Not Found : {“Message”:”DocumentGUID is not found”}
- 500 Internal Server Error : {“Message”:”Internal Server Error”}