Function: getAttachmentThumbnail()
ts
function getAttachmentThumbnail(
client,
parameters,
options?
): Promise<ArrayBuffer | ArrayBufferView<ArrayBufferLike>>;Defined in: src/serviceDesk/api/request.ts:383
Returns the thumbnail of an attachment.
To return the attachment contents, use servicedeskapi/request/{issueIdOrKey}/attachment/{attachmentId}.
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 of 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>>