• Approval
  • Customer
  • Customer Request
  • Customer Transition
  • Jira Service Management Application
  • Organization
  • Organization Service Desk
  • Portals
  • Queue
  • Queue Settings
  • Request Attachment
  • Request Type
  • Request Type Permissions
  • Service Desk
  • Service Desk Customer
  • application-properties
  • applicationrole
  • attachment
  • avatar
  • cluster
  • comment
  • component
  • configuration
  • customFieldOption
  • customFields
  • dashboard
  • email-templates
  • field
  • filter
  • group
  • groups
  • groupuserpicker
  • index
  • index-snapshot
  • issue
  • issueLinkType
  • issuesecurityschemes
  • issuetype
  • issuetypescheme
  • jql
  • licenseValidator
  • monitoring
  • mypermissions
  • mypreferences
  • myself
  • notificationscheme
  • password
  • permissions
  • permissionscheme
  • priority
  • priorityschemes
  • project
  • projectCategory
  • projects
  • projectvalidate
  • reindex
  • resolution
  • role
  • screens
  • securitylevel
  • serverInfo
  • session
  • settings
  • status
  • statuscategory
  • terminology
  • universal_avatar
  • upgrade
  • user
  • version
  • websudo
  • workflow
  • workflowscheme
  • worklog
  • Assets - AQL
  • Assets - Analytics
  • Assets - Archived Objects
  • Assets - Attachments
  • Assets - Comments
  • Assets - Icons
  • Assets - Index Configuration
  • Assets - Object
  • Assets - Object Archive
  • Assets - Object Attribute
  • Assets - Object Connected Tickets
  • Assets - Object Restore
  • Assets - Object Schema
  • Assets - Object Type
  • Assets - Object Type Attribute
  • Assets - Progress
  • Assets - QR Code
  • Assets - Status Types
Server
Jira Service Management / Reference / REST API

attachment

Postman Collection
OpenAPI
GET

Get attachment capabilities

Returns the meta information for an attachments, specifically if they are enabled and the maximum upload size allowed.

Request

This request has no parameters.

Responses

JSON representation of the attachment capabilities. Consumers of this resource may also need to check if the logged in user has permission to upload or otherwise manipulate attachments using the com.atlassian.jira.rest.v2.permission.PermissionsResource

application/json

AttachmentMetaBean
GET/api/2/attachment/meta
1 2 3 4 curl --request GET \ --url 'http://{baseurl}/rest/api/2/attachment/meta' \ --user 'email@example.com:<api_token>' \ --header 'Accept: application/json'
GET

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.

Request

Path parameters

id

string

Required

Responses

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.

application/json

AttachmentBean

GET/api/2/attachment/{id}
1 2 3 4 curl --request GET \ --url 'http://{baseurl}/rest/api/2/attachment/{id}' \ --user 'email@example.com:<api_token>' \ --header 'Accept: application/json'
DEL

Delete an attachment from an issue

Remove an attachment from an issue.

Request

Path parameters

id

string

Required

Responses

Removal was successful

DEL/api/2/attachment/{id}
1 2 3 curl --request DELETE \ --url 'http://{baseurl}/rest/api/2/attachment/{id}' \ --user 'email@example.com:<api_token>'
GET

Get human-readable attachment expansionExperimental

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

Request

Path parameters

id

string

Required

Responses

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.

application/json

HumanReadableArchive