getAttachmentThumbnail method

Future getAttachmentThumbnail({
  1. required String issueIdOrKey,
  2. required int attachmentId,
})

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:

Implementation

Future<dynamic> getAttachmentThumbnail(
    {required String issueIdOrKey, required int attachmentId}) async {
  return await _client.send(
    'get',
    'rest/servicedeskapi/request/{issueIdOrKey}/attachment/{attachmentId}/thumbnail',
    pathParameters: {
      'issueIdOrKey': issueIdOrKey,
      'attachmentId': '$attachmentId',
    },
  );
}