# Class: UnlinkDocumentRequest

## tibco.objectapi.service.request.UnlinkDocumentRequest

#### new UnlinkDocumentRequest(docRef, caseRef)

Object UnlinkDocumentRequest Usage: `RestApiService.getDocumentService().unlinkDocument(request, callback);`

##### Parameters:

Name | Type | Description
--- | --- | ---
`docRef` | string | The reference to the document being unlinked from a case. Can be obtained using getFolderContent.
`caseRef` | string | The case from which to unlink the document, which can be obtained using getCaseReferencesForDataView. Note that some CMIS servers use characters in document and case references that must be URL encoded. If you are using such a CMIS server, URL encode the document or case reference, or use the alternative function that passes the UnlinkDocumentRequestType element.

Since:
  - 4.0.0