REST API - createDocument - Multi-part POST

The table summarizes the REST API - createDocument using a multi-part POST.

Request - Multi-Part POST

Format POST <baseurl>/document/create

Response - Multi-Part POST

JSON Returns a JSON representation of the content of the createDocumentResponse element.
XML Returns the content of the createDocumentResponse element (from the DocumentService schema).

Example - Multi-Part POST

Request
POST <baseurl>/document/create
Body (with the document content stored in a MIME-type attachment)
<?xml version="1.0" encoding="UTF-8"?>
    <CreateDocumentRequest xmlns="">
        <owner>
            <caseReference>BDS-1-com.example.ordermodel.Customer-178-0</caseReference>
        </owner>
        <name>tibbr-logo.png</name>
        <versioningState>NONE</versioningState>
        <mimeType>image/png</mimeType>
    </CreateDocumentRequest>
Response
{ "reference": "DocumentID-354" }