YouTrack Standalone 2017.1 Help

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.
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 http://localhost:8081/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 Server: Jetty(7.2.0.v20101020)

Sample 2

Request

PUT http://localhost:8081/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 Server: Jetty(7.2.0.v20101020) <?xml version="1.0" encoding="UTF-8" standalone="yes"?><error>Version [ version3 ] already exists.</error>
Last modified: 18 April 2017