Roles
Authorize the API call with your API token in the Authorization header with the value: Token your-api-token.
If you don't have an API token yet, please refer to the "Authentication" section to learn how to create one.
The name of the custom role.
Custom ViewerWhether the role applies to the organization or a team.
organizationPossible values: The ID of the organization to create the custom role in.
1An optional description of the custom role.
Read-only access to organization resources.List of permission IDs to assign to the custom role.
[101,102]Successful response
Successful response
Authorize the API call with your API token in the Authorization header with the value: Token your-api-token.
If you don't have an API token yet, please refer to the "Authentication" section to learn how to create one.
The ID of the custom role to delete.
42The ID of the organization the custom role belongs to.
1Successful response
The ID of the deleted custom role.
Successful response
Authorize the API call with your API token in the Authorization header with the value: Token your-api-token.
If you don't have an API token yet, please refer to the "Authentication" section to learn how to create one.
The ID of the custom role to update.
42The ID of the organization the custom role belongs to.
1New name for the custom role.
Updated ViewerNew description for the custom role. Pass null to clear it.
Updated description.Full list of permission IDs to assign to the role. Replaces existing permissions.
[101]Successful response
Successful response
Authorize the API call with your API token in the Authorization header with the value: Token your-api-token.
If you don't have an API token yet, please refer to the "Authentication" section to learn how to create one.
Set this parameter to organization or team to get user roles in an organization or in a team.
teamPossible values: Include custom roles belonging to this organization. Can be combined with teamId; if both are provided and the team does not belong to the organization, the request returns 400. If the organization does not have the customRoles license, or the caller lacks permission to view that organization's users, custom roles are silently excluded from the response while the system roles are still returned.
1Include custom roles belonging to the organization that owns this team. Can be combined with organizationId; if both are provided and the team does not belong to the organization, the request returns 400. If the organization does not have the customRoles license, or the caller lacks permission to view that organization's users, custom roles are silently excluded from the response while the system roles are still returned.
1Filter the response to a single role by its ID.
42Exclude roles with these IDs from the response.
[1,3]Successful response
Bad request. Returned when organizationId and teamId are both provided and the team does not belong to the specified organization.
Authorize the API call with your API token in the Authorization header with the value: Token your-api-token.
If you don't have an API token yet, please refer to the "Authentication" section to learn how to create one.
The ID of the role.
42Successful response
Not available on self-hosted (private) deployments.
Insufficient rights or the organization does not have the customRoles license.
Role not found.
Authorize the API call with your API token in the Authorization header with the value: Token your-api-token.
If you don't have an API token yet, please refer to the "Authentication" section to learn how to create one.
Filter permissions by role category. Use team for team role permissions or organization for organization role permissions.
teamPossible values: Successful response
Successful response
Last updated

