Operations with Specific Role
This resource lets you work with roles in YouTrack.
Available since YouTrack 2026.1.
Resource | /api/roles/{roleID} |
|---|---|
Returned entity | Role. For the description of the entity attributes, see Supported Fields section. |
Supported methods |
|
Role attributes
Represents a role in YouTrack.
Available since YouTrack 2026.1.
Attributes
This table describes attributes of the Role entity.
To receive an attribute in the response from the server, specify it explicitly in the
fieldsrequest parameter.To update an attribute, provide it in the body of a POST request.
Field | Type | Description |
|---|---|---|
id | String | The database ID of the role. |
name | String | The name of the role. |
description | String | The description of the role. |
permissions | The list of permissions included in the role. To set or replace the role's permissions, include this attribute in the POST request body. Specify each permission key in a permission object's | |
immutable | Boolean | True for the System Admin role, otherwise false. An immutable role cannot be updated or deleted. |
Update a Specific Role
Update a specific role.
Required permissions
Requires Admin Update App permission.
Request syntax
{roleID} | The database ID of Role |
|---|
Request parameters
Parameter | Type | Description |
|---|---|---|
fields | String | A list of Role attributes that should be returned in the response. If no field is specified, only the |
Sample
Update the description attribute and replace the role's permission set. Include the permissions to retain and their implied permissions.
Sample request
Sample request body
Sample response body
Read a Specific Role
Get a specific role.
Required permissions
Requires any of the following permissions: Read Role (in at least one scope), Update Organization, or Admin Read App.
Request syntax
{roleID} | The database ID of the role. |
|---|
Request parameters
Parameter | Type | Description |
|---|---|---|
fields | String | A list of Role attributes that should be returned in the response. If no field is specified, only the |
Sample
Read the custom Issue Reader role. Replace 28-33 with the role database ID from your instance.
Sample request
Sample response body
Delete a Specific Role
Delete a specific role.
Required permissions
Requires Admin Update App permission. The System Admin role cannot be deleted.
Request syntax
{roleID} | The database ID of the role. |
|---|
Request parameters
Parameter | Type | Description |
|---|---|---|
fields | String | A list of Role attributes that should be returned in the response. If no field is specified, only the |
Sample
Delete the custom Issue Reader role.