Download a thumbnail
Written by
Use this request to get thumbnails of image files attached to issues.
Request format
Before making the request, get permission to access the API.
To get a thumbnail, use an HTTP GET
request.
GET /v2/issues/<issue-id>/thumbnails/<attachment-id>
Host: https://api.tracker.yandex.net
Authorization: OAuth <OAuth token>
X-Org-ID: <organization ID>
Headers
-
Host
API host address:
https://api.tracker.yandex.net
-
Authorization
OAuth token in
OAuth <token value>
format. For example:OAuth 0c4181a7c2cf4521964a72ff57a34a07
-
X-Org-ID
Organization ID.
Resource
Parameter | Description | Data type |
---|---|---|
<issue-id> | Issue ID or key | String |
<attachment-id> | Unique ID of the file attached | String or number |
Response format
Request executed successfully
Request failed
If the request is successful, the API returns a response with code 200 OK
.
The response body contains a thumbnail of the image file.
If the request is processed incorrectly, the API returns a response with an error code:
- 404
- The requested object was not found. You may have specified an invalid object ID or key.