getAttachmentThumbnail method
Returns the thumbnail of an attachment.
To return the attachment contents, use Get attachment content.
This operation can be accessed anonymously.
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<Map<String, dynamic>> getAttachmentThumbnail(
{required String id,
bool? redirect,
bool? fallbackToDefault,
int? width,
int? height}) async {
return await _client.send(
'get',
'rest/api/3/attachment/thumbnail/{id}',
pathParameters: {
'id': id,
},
queryParameters: {
if (redirect != null) 'redirect': '$redirect',
if (fallbackToDefault != null)
'fallbackToDefault': '$fallbackToDefault',
if (width != null) 'width': '$width',
if (height != null) 'height': '$height',
},
) as Map<String, Object?>;
}