# Class: LinkDocumentRequest

## tibco.objectapi.service.request.LinkDocumentRequest

#### new LinkDocumentRequest(docRef, caseRef)

Object LinkDocumentRequest Usage: `RestApiService.getDocumentService().linkDocument(request, callback);`

##### Parameters:

Name | Type | Description
--- | --- | ---
`docRef` | string | The reference to the document being linked to a case. Can be obtained using getFolderContent.
`caseRef` | string | The target case, 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 LinkDocumentRequestType element.

Since:
  - 4.0.0