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

Get human-readable attachment expansion

Tries to expand an attachment. Output is human-readable and subject to change.

GET/api/2/attachment/{id}/expand/human
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

the id of the attachment to expand.

Responses
200

JSON representation of the attachment expanded contents. Empty entry list means that attachment cannot be expanded. It's either empty, corrupt or not an archive at all.

entriesobject
idinteger<int64>
mediaTypestring
namestring
totalEntryCountinteger<int64>
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

409

The archive format is not supported. since v6.4

Try it
Server
Authorization
Parameters
Request
curl -X GET 'http://jira.example.com/rest/api/2/attachment/string/expand/human' \
  -H 'Authorization: Basic YOUR_CREDENTIALS' \
  -H 'Accept: application/json'
Response
{
  "entries": {},
  "id": 7237823,
  "mediaType": "application/zip",
  "name": "images.zip",
  "totalEntryCount": 39
}

Was this page helpful?