Add New Version to Bundle
PUT /admin/customfield/versionBundle/{bundleName}/{versionName}
Add new version to bundle
PUT /rest/admin/customfield/versionBundle/{bundleName}/{versionName}?{description}&{colorIndex}&{releaseDate}&{released}&{archived}
Parameters:
Name | Type | Description |
---|---|---|
bundleName | string | Name of a bundle to add a new version. |
buildName | string | Name of a new version. |
description | string | Version description. |
colorIndex | Integer | Sequential number of a color scheme (background color/text color pair) for the new version. See the list of available Color Indices List |
releaseDate | instant | Date of a release for the new version. |
released | boolean | Mark the version as released. |
archived | boolean | Mark the version as archived. |
Samples
Sample 1
Request
PUT https://example.com/youtrack/rest/admin/customfield/versionBundle/Name%20with%20spaces/version3?description=My+description&releaseDate=1234567890000&released=true&archived=true
Cookie: $Version=0; JSESSIONID=aovevd6psvky7i4y0bws8y2q; $Path=/; jetbrains.charisma.main.security.PRINCIPAL=NDgxMzQ5NGQxMzdlMTYzMWJiYTMwMWQ1YWNhYjZlN2JiN2FhNzRjZTExODVkNDU2NTY1ZWY1MWQ3Mzc2NzdiMjpyb290; $Path=/
Response
HTTP/1.1 201 Created
Content-Type: application/xml;charset=UTF-8
Location: https://example.com/youtrack/rest/admin/customfield/versionBundle/Name%20with%20spaces/version3
Content-Length: 0
Sample 2
Request
PUT https://example.com/youtrack/rest/admin/customfield/versionBundle/Name%20with%20spaces/version3?description=My+description&releaseDate=1234567890000&released=true&archived=true
Cookie: $Version=0; JSESSIONID=aovevd6psvky7i4y0bws8y2q; $Path=/; jetbrains.charisma.main.security.PRINCIPAL=NDgxMzQ5NGQxMzdlMTYzMWJiYTMwMWQ1YWNhYjZlN2JiN2FhNzRjZTExODVkNDU2NTY1ZWY1MWQ3Mzc2NzdiMjpyb290; $Path=/
Response
HTTP/1.1 409 Conflict
Content-Type: application/xml;charset=UTF-8
Content-Length: 106
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><error>Version [ version3 ] already exists.</error>
Last modified: 16 March 2020