Returns the meta information for an attachments, specifically if they are enabled and the maximum upload size allowed.
This request has no parameters.
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
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'
Returns the meta-data for an attachment, including the URI of the actual attached file.
string
RequiredJSON 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.
AttachmentBean
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'
Remove an attachment from an issue.
string
RequiredRemoval was successful
1
2
3
curl --request DELETE \
--url 'http://{baseurl}/rest/api/2/attachment/{id}' \
--user 'email@example.com:<api_token>'
Tries to expand an attachment. Output is human-readable and subject to change.
string
RequiredJSON 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.