YouTrack Standalone 2017.3 Help

PUT Group Role

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

Assign roles in projects to a user group. In the request body you must provide a list of projects in which the role is granted.

PUT /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 /rest/admin/group/OLD-REST/role/Developer HTTP/1.1 Host: youtrack.example.com Authorization: Bearer perm:YWRtaW4=.TmV3IHBvc3RtYW4=.2XEB5UqhtVXrLJV9XZIijjaXNjX70i Accept: application/json Content-Type: application/xml Cache-Control: no-cache <userRole name="Developer"> <projects> <projectRef id="D9" /> </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://youtrack.example.com/rest/admin/group/OLD-REST/role/Developer Content-Length: 0
Last modified: 6 September 2017