YouTrack Standalone 2017.2 Help

PUT Group Role

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

Assign roles to a user group.

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

Parameters:

Name

Type

Description

group

groupByName

Name of a user group.

role

roleByName

Name of the Role to assign to the specified group.

Sample

Request

PUT https://example.com/youtrack/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: https://example.com/youtrack/rest/admin/group/idea-developers/role/Observer Content-Length: 0
Last modified: 7 March 2019