Get the Attachment Content
/capture/api/v1.1/documents/{docId}/attachments/{attId}/content
This operation will return the raw content of the attachment specified by the docId and attId parameters.
The Content-Type of the response is dependent on the mediaType
of the attachment. This can vary.
It is an error if the attachment is not attached to the given document.
Note: If the OAuth token represents an account that is a Capture Administator, the response will return the given attachment, provided it exists. If the OAuth token does not represent an account that is a Capture Administator, meaning it is just a Capture User, the response will only return the attachment if it exists and its document is currently in a step in which the account as been granted explict access.
Request
- application/json
-
attId: string
The unique identifier of the attachment in Capture.
-
docId: string
The unique identifier of the document in Capture.
Response
- */*
200 Response
The attachment's raw content specified by the docId and attId parameters.
The Content-Type of the response is dependent on the mediaType
of the attachment.
404 Response
Not Found
The request includes a resource URI that does not exist. The response will be an Error Detail object.
500 Response
Internal Server Error
The server encountered an unexpected condition that prevented it from fulfilling the request. The response will be an Error Detail object.