...
Parameter | Description | ||||
---|---|---|---|---|---|
issueKey | Key of the JIRA issue which attachments you to rename. | ||||
id | ID of the attachment you want to rename. | ||||
catId
| ID of the category where the attachment for renaming is stored. | ||||
name | A new name for the attachment. | ||||
isDoc | Indicates that the attachment you refer to is a document. It may accept two values:
This parameter is optional and you can omit it if you are performing a request for generic attachments. For the details on documents with revisions, please see this. |
Here you can see an example of the request:
...
In this request you need to enter the correct value for the following parameter:
Talk | ||
---|---|---|
|
Parameter | Description |
---|---|
ids | ID's of attachments you want to delete. |
...
Code Block |
---|
curl -D- -u admin:admin --request POST "https://yourjira.com/rest/attach-cat/1.0/attachments/remove" --data "ids=161105&ids=161107" |
No response is returned.
Deleting document revisions
Talk | ||
---|---|---|
|
You can delete one or multiple document revisions from the issue.
...
In this request you need to specify the correct values for the following parameters:
Talk | ||
---|---|---|
|
Parameter | Description |
---|---|
issueKey | Key of the JIRA issue which you want to see the list of categories with attachments. |
ids | ID's of attachments and document revisions you want to archive. |
cat | ID of the category where you want to place the archive with attachments. |
name | Name of the archive. The ZIP extension will be automatically appended to the archive name. |
...