POST api/Documents

Uploads and registers a document using the supplied metadata.

Request

Body

Content Type: multipart/form-data

Part 1

Content Type: application/xml
Schema: http://download.overtech.com.au/schemas/XmlDocument.xsd
Metadata describing the document.

Part 2

Content Type: application/octet-stream
Contents of the document.

Response

Body

Content Type: application/xml
Identifier for the new document or an error message.

XML
<Response>                     
  <Result>                     
    <Status>string</Status>    <!--Always 'Success'--> 
    <ID>long</ID>              <!--Document number (unique ID)--> 
  </Result>                    
  <Message>string</Message>    <!--Error message--> 
</Response>                    

Status Codes

Code Condition
201 CreatedThe document was successfully registered.
400 Bad RequestMissing/invalid content.
401 Unauthorized Access token is invalid, expired or not specified.
403 ForbiddenUser does not have permission to register the document.
406 Not Acceptable Content type specified in the Accept header isn't supported.
415 Unsupported Media TypeContent type of the request is incorrect.
500 Internal Server Error An internal error occurred.