Skip to content
atlassian-dc-mcp
Esc
↑↓navigate↵open⌘Jpreview

Get the meta-data for an attachment, including the URI of the actual attached file

Returns the meta-data for an attachment, including the URI of the actual attached file.

GET/api/2/attachment/{id}
Authorization
AuthorizationBasic auth · headerrequired

In order to use basic authorization, provide username:password Base64 encoded in the 'Authorization' header.

or
AuthorizationBearer token · headerrequired

Personal Access Token — Administration > Profile > Personal Access Tokens

AuthorizationBasic auth · headerrequired

In order to use basic authorization, provide username:password Base64 encoded in the 'Authorization' header.

Path parameters
idstringrequired

id of the attachment to view

Responses
200

JSON representation of the attachment meta-data. The representation does not contain the attachment itself, but contains a URI that can be used to download the actual attached file.

object
403

The calling user is not permitted to view the requested attachment.

404

Any of: there is no attachment with the requested id, attachments feature is disabled

Try it
Server
Authorization
Parameters
Request
curl -X GET 'http://jira.example.com/rest/api/2/attachment/string' \
  -H 'Authorization: Basic YOUR_CREDENTIALS' \
  -H 'Accept: application/json'
Response
{}

Was this page helpful?