{
"opencollection": "1.0.0",
"info": {
"name": "Atlassian Admin Account Issue Attachments API",
"version": "1.0.0"
},
"request": {
"auth": {
"type": "bearer",
"token": "{{bearerToken}}"
}
},
"items": [
{
"info": {
"name": "Issue Attachments",
"type": "folder"
},
"items": [
{
"info": {
"name": "Atlassian Get Attachment Content",
"type": "http"
},
"http": {
"method": "GET",
"url": "https://api.atlassian.com/rest/api/3/attachment/content/:id",
"params": [
{
"name": "id",
"value": "",
"type": "path",
"description": "The ID of the attachment."
},
{
"name": "redirect",
"value": "",
"type": "query",
"description": "Whether a redirect is provided for the attachment download. Clients that do not automatically follow redirects can set this to `false` to avoid making multiple requests to download the attachment."
}
]
},
"docs": "Returns the contents of an attachment. A `Range` header can be set to define a range of bytes within the attachment to download. See the [HTTP Range header standard](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Range) for details.
To return a thumbnail of the attachment, use [Get attachment thumbnail](#api-rest-api-3-attachment-thumbnail-id-get).
This operation can be accessed anonymously.
**[Permissions](#permissions) required:** For the issue containing the at"
},
{
"info": {
"name": "Atlassian Get Jira Attachment Settings",
"type": "http"
},
"http": {
"method": "GET",
"url": "https://api.atlassian.com/rest/api/3/attachment/meta"
},
"docs": "Returns the attachment settings, that is, whether attachments are enabled and the maximum attachment size allowed.
Note that there are also [project permissions](https://confluence.atlassian.com/x/yodKLg) that restrict whether users can create and delete attachments.
This operation can be accessed anonymously.
**[Permissions](#permissions) required:** None."
},
{
"info": {
"name": "Atlassian Get Attachment Thumbnail",
"type": "http"
},
"http": {
"method": "GET",
"url": "https://api.atlassian.com/rest/api/3/attachment/thumbnail/:id",
"params": [
{
"name": "id",
"value": "",
"type": "path",
"description": "The ID of the attachment."
},
{
"name": "redirect",
"value": "",
"type": "query",
"description": "Whether a redirect is provided for the attachment download. Clients that do not automatically follow redirects can set this to `false` to avoid making multiple requests to download the attachment."
},
{
"name": "fallbackToDefault",
"value": "",
"type": "query",
"description": "Whether a default thumbnail is returned when the requested thumbnail is not found."
},
{
"name": "width",
"value": "",
"type": "query",
"description": "The maximum width to scale the thumbnail to."
},
{
"name": "height",
"value": "",
"type": "query",
"description": "The maximum height to scale the thumbnail to."
}
]
},
"docs": "Returns the thumbnail of an attachment.
To return the attachment contents, use [Get attachment content](#api-rest-api-3-attachment-content-id-get).
This operation can be accessed anonymously.
**[Permissions](#permissions) required:** For the issue containing the attachment:
* *Browse projects* [project permission](https://confluence.atlassian.com/x/yodKLg) for the project that the issue is in.
* If [issue-level security](https://confluence.atlassian.com/x/J4lKL"
},
{
"info": {
"name": "Atlassian Get Attachment Metadata",
"type": "http"
},
"http": {
"method": "GET",
"url": "https://api.atlassian.com/rest/api/3/attachment/:id",
"params": [
{
"name": "id",
"value": "",
"type": "path",
"description": "The ID of the attachment."
}
]
},
"docs": "Returns the metadata for an attachment. Note that the attachment itself is not returned.
This operation can be accessed anonymously.
**[Permissions](#permissions) required:**
* *Browse projects* [project permission](https://confluence.atlassian.com/x/yodKLg) for the project that the issue is in.
* If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is configured, issue-level security permission to view the issue."
},
{
"info": {
"name": "Atlassian Delete Attachment",
"type": "http"
},
"http": {
"method": "DELETE",
"url": "https://api.atlassian.com/rest/api/3/attachment/:id",
"params": [
{
"name": "id",
"value": "",
"type": "path",
"description": "The ID of the attachment."
}
]
},
"docs": "Deletes an attachment from an issue.
This operation can be accessed anonymously.
**[Permissions](#permissions) required:** For the project holding the issue containing the attachment:
* *Delete own attachments* [project permission](https://confluence.atlassian.com/x/yodKLg) to delete an attachment created by the calling user.
* *Delete all attachments* [project permission](https://confluence.atlassian.com/x/yodKLg) to delete an attachment created by any user."
},
{
"info": {
"name": "Atlassian Get All Metadata For An Expanded Attachment",
"type": "http"
},
"http": {
"method": "GET",
"url": "https://api.atlassian.com/rest/api/3/attachment/:id/expand/human",
"params": [
{
"name": "id",
"value": "",
"type": "path",
"description": "The ID of the attachment."
}
]
},
"docs": "Returns the metadata for the contents of an attachment, if it is an archive, and metadata for the attachment itself. For example, if the attachment is a ZIP archive, then information about the files in the archive is returned and metadata for the ZIP archive. Currently, only the ZIP archive format is supported.
Use this operation to retrieve data that is presented to the user, as this operation returns the metadata for the attachment itself, such as the attachment's ID and name. Otherwise"
},
{
"info": {
"name": "Atlassian Get Contents Metadata For An Expanded Attachment",
"type": "http"
},
"http": {
"method": "GET",
"url": "https://api.atlassian.com/rest/api/3/attachment/:id/expand/raw",
"params": [
{
"name": "id",
"value": "",
"type": "path",
"description": "The ID of the attachment."
}
]
},
"docs": "Returns the metadata for the contents of an attachment, if it is an archive. For example, if the attachment is a ZIP archive, then information about the files in the archive is returned. Currently, only the ZIP archive format is supported.
Use this operation if you are processing the data without presenting it to the user, as this operation only returns the metadata for the contents of the attachment. Otherwise, to retrieve data to present to the user, use [ Get all metadata for an expand"
},
{
"info": {
"name": "Atlassian Add Attachment",
"type": "http"
},
"http": {
"method": "POST",
"url": "https://api.atlassian.com/rest/api/3/issue/:issueIdOrKey/attachments",
"params": [
{
"name": "issueIdOrKey",
"value": "",
"type": "path",
"description": "The ID or key of the issue that attachments are added to."
}
],
"body": {
"type": "multipart-form",
"data": []
}
},
"docs": "Adds one or more attachments to an issue. Attachments are posted as multipart/form-data ([RFC 1867](https://www.ietf.org/rfc/rfc1867.txt)).
Note that:
* The request must have a `X-Atlassian-Token: no-check` header, if not it is blocked. See [Special headers](#special-request-headers) for more information.
* The name of the multipart/form-data parameter that contains the attachments must be `file`.
The following examples upload a file called *myfile.txt* to the issue *"
}
]
}
],
"bundled": true
}