YouTrack InCloud 7.0 Help

PUT Group Role

PUT /admin/group/{group}/role/{role}

Assign roles to a user group.

GET /rest/admin/group/{group}/role/{role}

Parameters:

NameTypeDescription
groupgroupByNameName of a user group.
roleroleByNameName of the Role to assign to the specified group.

Sample

Request

PUT http://localhost:8081/rest/admin/group/idea-developers/role/Observer Cookie: $Version=0; JSESSIONID=16xaly1xy75ls930rhylg0y60; $Path=/; jetbrains.charisma.main.security.PRINCIPAL=NDgxMzQ5NGQxMzdlMTYzMWJiYTMwMWQ1YWNhYjZlN2JiN2FhNzRjZTExODVkNDU2NTY1ZWY1MWQ3Mzc2NzdiMjpyb290; $Path=/ <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <userRole name="Observer"> <projects> <projectRef id="HBR" /> </projects> </userRole>

Response

HTTP/1.1 201 Created Content-Type: application/xml; charset=UTF-8 Cache-Control: no-cache, no-store, no-transform, must-revalidate Location: http://unit-258.labs.intellij.net:8080/charisma/rest/admin/group/idea-developers/role/Observer Content-Length: 0 Server: Jetty(7.2.0.v20101020)
Last modified: 29 September 2016