Uploads and registers a document using the supplied metadata.
Content Type:
multipart/form-data
Content Type:
application/xml
Schema:
http://download.overtech.com.au/schemas/XmlDocument.xsd
Metadata describing the document.
Content Type:
application/octet-stream
Contents of the document.
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>
|
| Code | Condition |
|---|---|
| 201 Created | The document was successfully registered. |
| 400 Bad Request | Missing/invalid content. |
| 401 Unauthorized | Access token is invalid, expired or not specified. |
| 403 Forbidden | User does not have permission to register the document. |
| 406 Not Acceptable | Content type specified in the Accept header isn't supported. |
| 415 Unsupported Media Type | Content type of the request is incorrect. |
| 500 Internal Server Error | An internal error occurred. |