YouTrack Standalone 2017.1 Help

Create New Version Bundle

PUT /admin/customfield/versionBundle

Create new version bundle

PUT /rest/admin/customfield/versionBundle

Samples

Sample 1

Request

PUT http://localhost:8081/rest/admin/customfield/versionBundle Cookie: $Version=0; JSESSIONID=aovevd6psvky7i4y0bws8y2q; $Path=/; jetbrains.charisma.main.security.PRINCIPAL=NDgxMzQ5NGQxMzdlMTYzMWJiYTMwMWQ1YWNhYjZlN2JiN2FhNzRjZTExODVkNDU2NTY1ZWY1MWQ3Mzc2NzdiMjpyb290; $Path=/ <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <versions name="Name with spaces"> <version>version1</version> <version description="Old description" releaseDate="123098" released="false" archived="true">version2</version> </versions>

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 Content-Length: 0 Server: Jetty(7.2.0.v20101020)

Sample 2

Request

PUT http://localhost:8081/rest/admin/customfield/versionBundle Cookie: $Version=0; JSESSIONID=aovevd6psvky7i4y0bws8y2q; $Path=/; jetbrains.charisma.main.security.PRINCIPAL=NDgxMzQ5NGQxMzdlMTYzMWJiYTMwMWQ1YWNhYjZlN2JiN2FhNzRjZTExODVkNDU2NTY1ZWY1MWQ3Mzc2NzdiMjpyb290; $Path=/ <actual file content, not shown here>

Response

HTTP/1.1 400 Bad Request Content-Type: application/xml;charset=UTF-8 Transfer-Encoding: chunked Server: Jetty(7.2.0.v20101020) unexpected element (uri:"", local:"versionsName"). Expected elements are <{}version>,<{}versions>
Last modified: 18 April 2017