REST API - unlinkDocument - with a Request Body

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

Request - with a Request Body

Format PUT <baseurl>/document/unlink
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 UnlinkDocumentResponse element.
XML Returns the content of the UnlinkDocumentResponse element (from the DocumentService schema).

Example - with a Request Body

Request
PUT <baseurl>/document/unlink
Body
{
  "UnlinkDocumentRequest": {
    "sourceOwner": { "caseReference": "BDS-1-com.example.ordermodel.Order-3-0" },
    "documentReference": "DocumentID-66e338f9-b511-475f-8f1d-9c693f8e5189;1.0"
  }
}
Response
{ "xml-fragment": null }