Function: getAttachmentContent()
ts
function getAttachmentContent(
client,
parameters,
options?
): Promise<ArrayBuffer | ArrayBufferView<ArrayBufferLike>>;Defined in: src/serviceDesk/api/request.ts:354
Returns the contents of an attachment.
To return a thumbnail of the attachment, use servicedeskapi/request/{issueIdOrKey}/attachment/{attachmentId}/thumbnail.
Permissions required: For the issue containing the attachment:
- Browse projects project permission for the project that the issue is in.
- If issue-level security is configured, issue-level security permission to view the issue.
Parameters
| Parameter | Type | Description |
|---|---|---|
client | Client | - |
parameters | { attachmentId: number; issueIdOrKey: string; } | - |
parameters.attachmentId | number | The ID for the attachment |
parameters.issueIdOrKey? | string | The ID or key for the customer request the attachment is associated with |
options? | RequestOptions | - |
Returns
Promise<ArrayBuffer | ArrayBufferView<ArrayBufferLike>>