Download a file

Use this request to download a file attached to an issue.

Request format

To download a file, use an HTTP GET request:

GET /v2/issues/<issue-id>/attachments/<attachment-id>/<filename>
Host: https://api.tracker.yandex.net
Authorization: OAuth <OAuth token>
X-Org-Id: <organization ID>
Resource
<issue-id>
Issue ID or key.
<attachment-id>

Unique identifier of the file.

<filename>

Name of the file.

Request to download a file attached to the task JUNE-2:

  • Uses the HTTP GET method.

GET /v2/issues/JUNE-2/attachments/4159/attachment.txt HTTP/1.1
Host: https://api.tracker.yandex.net
Authorization: OAuth <OAuth token>
X-Org-Id: <organization ID>

Response format

For a successful request, the API returns a 200 response.

Possible response codes

200
The request was successful.
404
The requested object was not found. You might have entered an incorrect object ID or key value.