Skip to content
atlassian-dc-mcp
Esc
↑↓navigate↵open⌘Jpreview

Delete version and replace values

Delete a project version, removed values will be replaced with ones specified by the parameters.

POST/api/2/version/{id}/removeAndSwap
Authorization
AuthorizationBasic auth · headerrequired

In order to use basic authorization, provide username:password Base64 encoded in the 'Authorization' header.

Path parameters
idstringrequired

The version to delete

Request body
requiredapplication/json

JSON containing parameters to replace the deleted version with

customFieldReplacementListCustomFieldReplacement[]
Show properties
Array of CustomFieldReplacement
customFieldIdinteger<int64>
moveTointeger<int64>
moveAffectedIssuesTointeger<int64>
moveFixIssuesTointeger<int64>
Responses
204

Returned if the version is successfully deleted.

400

Returned if the replacement didn't succeed

404

Returned if the version does not exist or the currently authenticated user does not have permission to view it.

Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X POST 'http://jira.example.com/rest/api/2/version/string/removeAndSwap' \
  -H 'Authorization: Basic YOUR_CREDENTIALS' \
  -H 'Content-Type: application/json' \
  -d '{
  "customFieldReplacementList": [
    {
      "customFieldId": 2002,
      "moveTo": 10003
    }
  ],
  "moveAffectedIssuesTo": 10002,
  "moveFixIssuesTo": 10001
}'
Response
Returned if the version is successfully deleted.

Was this page helpful?