Skip to content

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:

Parameters ​

ParameterTypeDescription
clientClient-
parameters{ attachmentId: number; issueIdOrKey: string; }-
parameters.attachmentIdnumberThe ID of the attachment.
parameters.issueIdOrKey?stringThe ID or key for the customer request the attachment is associated with
options?RequestOptions-

Returns ​

Promise<ArrayBuffer | ArrayBufferView<ArrayBufferLike>>