getAttachmentThumbnail method
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.
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',
},
);
}