REST API - moveDocument - with a Request Body

The table summarizes the REST API - moveDocument - with a request body.

Request - with a Request Body

Format PUT <baseurl>/document/move
Body The document reference is embedded in the request body.

Response - with a Request Body

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

Example - with a Request Body

Request
PUT <baseurl>/document/move
Body
{
  "MoveDocumentRequest": {
    "sourceOwner": { "caseReference": "BDS-1-com.example.ordermodel.Order-17-0" },
    "targetOwner": { "caseReference": "BDS-1-com.example.ordermodel.Order-1-0" },
    "documentReference": "DocumentID-b84b53ad-6229-45cd-92db-b35271a15078;1.0"
  }
}
Response
DocumentID-e50c2653-0fd7-4fef-ad6f-2ee460ba52cf;1.0