provider Issue attachments GET /rest/api/3/attachment/thumbnail/{id}
@utdk/jira /rest/api/3/attachment/thumbnail/{id}
Get attachment thumbnail
Returns the thumbnail of an attachment. To return the attachment contents, use [Get attachment content](#api-rest-api-3-attachment-content-id-get). This operation can be accessed anonymously. **[Permissions](#permissions) required:** For the issue containing the attachment: * *Browse projects* [project permission](https://confluence.atlassian.com/x/yodKLg) for the project that the issue is in. * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is configured, issue-level security permission to view the issue. * If attachments are added in private comments, the comment-level restriction will be applied.
id path required
The ID of the attachment.
string
redirect query
Whether a redirect is provided for the attachment download. Clients that do not automatically follow redirects can set this to `false` to avoid making multiple requests to download the attachment.
boolean
fallbackToDefault query
Whether a default thumbnail is returned when the requested thumbnail is not found.
boolean
width query
The maximum width to scale the thumbnail to.
integer
height query
The maximum height to scale the thumbnail to.
integer

Try it

Authentication
Configure credentials for The Jira Cloud platform REST API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

getattachmentthumbnail
GET/rest/api/3/attachment/thumbnail/{id}
Returns the thumbnail of an attachment. To return the attachment contents, use [Get attachment content](#api-rest-api-3-attachment-content-id-get). This operation can be accessed anonymously. **[Permissions](#permissions) required:** For the issue containing the attachment: * *Browse projects* [project permission](https://confluence.atlassian.com/x/yodKLg) for the project that the issue is in. * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is configured, issue-level security permission to view the issue. * If attachments are added in private comments, the comment-level restriction will be applied.

Parameters

required

The ID of the attachment.

Whether a redirect is provided for the attachment download. Clients that do not automatically follow redirects can set this to `false` to avoid making multiple requests to download the attachment.

Whether a default thumbnail is returned when the requested thumbnail is not found.

The maximum width to scale the thumbnail to.

The maximum height to scale the thumbnail to.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import jira from '@utdk/jira';

await jira.getattachmentthumbnail({
  "redirect": true,
  "fallbackToDefault": true
})