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

Create new version

Creates a version.

POST/api/2/version
Authorization
AuthorizationBasic auth · headerrequired

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

Request body
requiredapplication/json

JSON containing parameters to create the version with

archivedboolean
descriptionstring
expandstring
idstring
moveUnfixedIssuesTostring<uri>
namestring
overdueboolean
projectstring
projectIdinteger<int64>
releaseDatestring<date-time>
releaseDateSetboolean
releasedboolean
selfstring<uri>
startDatestring<date-time>
startDateSetboolean
userReleaseDatestring
userStartDatestring
Responses
201

Returned if the version is successfully created.

archivedboolean
descriptionstring
expandstring
idstring
moveUnfixedIssuesTostring<uri>
namestring
overdueboolean
projectstring
projectIdinteger<int64>
releaseDatestring<date-time>
releaseDateSetboolean
releasedboolean
selfstring<uri>
startDatestring<date-time>
startDateSetboolean
userReleaseDatestring
userStartDatestring
400

Returned if the version could not be created.

403

Returned if the currently authenticated user does not have permission to edit the version.

Try it
Server
Authorization
Bodyapplication/json
Request
curl -X POST 'http://jira.example.com/rest/api/2/version' \
  -H 'Authorization: Basic YOUR_CREDENTIALS' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "archived": false,
  "description": "An excellent version",
  "expand": "10000",
  "id": "10000",
  "moveUnfixedIssuesTo": "http://localhost:8090/jira/rest/api/2/version/10000/move",
  "name": "New Version 1",
  "overdue": true,
  "project": "PXA",
  "projectId": 10000,
  "releaseDate": "2019-08-24T14:15:22Z",
  "releaseDateSet": false,
  "released": true,
  "self": "http://localhost:8090/jira/rest/api/2/version/10000",
  "startDate": "2019-08-24T14:15:22Z",
  "startDateSet": false,
  "userReleaseDate": "2012-09-15T21:11:01.834+0000",
  "userStartDate": "2012-08-15T21:11:01.834+0000"
}'
Response
{
  "archived": false,
  "description": "An excellent version",
  "expand": "10000",
  "id": "10000",
  "moveUnfixedIssuesTo": "http://localhost:8090/jira/rest/api/2/version/10000/move",
  "name": "New Version 1",
  "overdue": true,
  "project": "PXA",
  "projectId": 10000,
  "releaseDate": "2019-08-24T14:15:22Z",
  "releaseDateSet": false,
  "released": true,
  "self": "http://localhost:8090/jira/rest/api/2/version/10000",
  "startDate": "2019-08-24T14:15:22Z",
  "startDateSet": false,
  "userReleaseDate": "2012-09-15T21:11:01.834+0000",
  "userStartDate": "2012-08-15T21:11:01.834+0000"
}

Was this page helpful?