Get Role
Fetch a given role.
GET
/api/v1/roles/{role_id}Authentication
Syllable-API-KeyrequiredSend Syllable-API-Key in the header.
Need a credential? Create or manage an API token in the Syllable Console.
Parameters
Path parameters
role_id
integer
path
required
Responses
200Successful Response
application/json
response
RoleResponse
required
8 fields
namestringrequiredThe name of the role.
descriptionstring | nulloptionalThe description of the role.
permissionsstring[]requiredThe permissions associated with the role. Available permissions can be found by calling GET /permissions.
Item schema
itemsstringrequiredidintegerrequiredThe internal ID of the role.
last_updated_commentsstring | nulloptionalComments for the most recent edit to the role.
is_system_rolebooleanrequiredWhether this is a built-in system role that cannot be updated or deleted
last_updatedstring (date-time)requiredThe timestamp of the most recent update to the role
last_updated_bystringrequiredThe email of the user who last updated the role
Response example
{
"name": "string",
"description": "string",
"permissions": [
"string"
],
"id": 0,
"last_updated_comments": "string",
"is_system_role": true,
"last_updated": "string",
"last_updated_by": "string"
}422Validation Error
application/json
response
HTTPValidationError
required
1 field
detailValidationError[]optionalItem schema
itemsValidationErrorrequired3 fields
locstring | integer[]requiredItem schema
itemsstring | integerrequired2 options
Option 1stringrequiredOption 2integerrequiredmsgstringrequiredtypestringrequiredResponse example
{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}
