Returns the meta information for an attachments, specifically if they are enabled and the maximum upload size allowed.
Forge and OAuth2 apps cannot access this REST resource.
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.
Forge and OAuth2 apps cannot access this REST resource.
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.
Forge and OAuth2 apps cannot access this REST resource.
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.
Forge and OAuth2 apps cannot access this REST resource.
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.
1
2
3
4
curl --request GET \
--url 'http://{baseurl}/rest/api/2/attachment/{id}/expand/human' \
--user 'email@example.com:<api_token>' \
--header 'Accept: application/json'
Tries to expand an attachment. Output is raw and should be backwards-compatible through the course of time.
Forge and OAuth2 apps cannot access this REST resource.
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.
1
2
3
4
curl --request GET \
--url 'http://{baseurl}/rest/api/2/attachment/{id}/expand/raw' \
--user 'email@example.com:<api_token>' \
--header 'Accept: application/json'
Rate this page: