YouTrack Standalone 2019.2 Help

Create New Version Bundle

PUT /admin/customfield/versionBundle

Create new version bundle

PUT /rest/admin/customfield/versionBundle

Samples

Sample 1

Request

PUT https://example.com/youtrack/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

Sample 2

Request

PUT https://example.com/youtrack/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 unexpected element (uri:"", local:"versionsName"). Expected elements are <{}version>,<{}versions>
Last modified: 17 December 2019