Add New State to a Bundle
PUT /admin/customfield/stateBundle/{bundleName}/{stateName}
Add new state to bundle
PUT /rest/admin/customfield/stateBundle/{bundleName}/{stateName}?{isResolved}&{description}&{colorIndex}
Samples
Sample 1
PUT http://localhost:8081/rest/admin/customfield/stateBundle/States%20Bundle1/new%20state?isResolved=true&description=PROFIT%21%21%21+120
Cookie: $Version=0; JSESSIONID=1xubq236wmpbd14yd1mhq4jcrw; $Path=/; jetbrains.charisma.main.security.PRINCIPAL=NDgxMzQ5NGQxMzdlMTYzMWJiYTMwMWQ1YWNhYjZlN2JiN2FhNzRjZTExODVkNDU2NTY1ZWY1MWQ3Mzc2NzdiMjpyb290; $Path=/
HTTP/1.1 201 Created
Content-Type: application/xml;charset=UTF-8
Location: https://example.com/youtrack/rest/admin/customfield/stateBundle/States%20Bundle1/new%20state
Content-Length: 0
Server: Jetty(7.2.0.v20101020)
Sample 2
PUT http://localhost:8081/rest/admin/customfield/stateBundle/States%20Bundle1/Uvalue2
Cookie: $Version=0; JSESSIONID=1xubq236wmpbd14yd1mhq4jcrw; $Path=/; jetbrains.charisma.main.security.PRINCIPAL=NDgxMzQ5NGQxMzdlMTYzMWJiYTMwMWQ1YWNhYjZlN2JiN2FhNzRjZTExODVkNDU2NTY1ZWY1MWQ3Mzc2NzdiMjpyb290; $Path=/
HTTP/1.1 409 Conflict
Content-Type: application/xml;charset=UTF-8
Content-Length: 103
Server: Jetty(7.2.0.v20101020)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><error>State [ Uvalue2 ] already exists.</error>
Sample 3
PUT http://localhost:8081/rest/admin/customfield/stateBundle/New%20Name%20with%20spaces/Rvalue%204?isResolved=true
Cookie: $Version=0; JSESSIONID=1xubq236wmpbd14yd1mhq4jcrw; $Path=/; jetbrains.charisma.main.security.PRINCIPAL=NDgxMzQ5NGQxMzdlMTYzMWJiYTMwMWQ1YWNhYjZlN2JiN2FhNzRjZTExODVkNDU2NTY1ZWY1MWQ3Mzc2NzdiMjpyb290; $Path=/
HTTP/1.1 201 Created
Content-Type: application/xml;charset=UTF-8
Location: https://example.com/youtrack/rest/admin/customfield/stateBundle/New%20Name%20with%20spaces/Rvalue%204
Content-Length: 0
Server: Jetty(7.2.0.v20101020)
Last modified: 2 February 2017