List User Roles
GET/user-roles/
Request
Query Parameters
Number of results to return per page.
Which field to use when ordering the results.
A page number within the paginated result set.
A unique Base58 value identifying this object.
A unique Base58 value identifying this object.
Responses
- 200
- 400
- 401
- 403
- 500
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
]
Total number of results.
Total number of pages.
Number of the current page.
The first page is 1.
Defaults to 1 if no specific page is requested.
Number of results returned per page.
results
object[]
A unique Base58 value identifying this object.
user
object
required
A unique Base58 value identifying this object.
Possible values: <= 254 characters
Email of the user.
Possible values: <= 60 characters
Name of the user.
role
object
required
A unique Base58 value identifying this object.
Possible values: <= 255 characters
Role's name.
permissions
object[]
Possible values: <= 255 characters
Textual identifier.
Possible values: <= 255 characters
Permission name.
Short description.
scope
object
required
target
object
A unique Base58 value identifying this object.
Target URL.
team
object
A unique Base58 value identifying this object.
{
"count": 6,
"page_total": 1,
"page": 1,
"length": 10,
"results": [
{
"id": "string",
"user": {
"id": "string",
"email": "[email protected]",
"name": "string"
},
"role": {
"id": "string",
"name": "string",
"permissions": [
{
"id": "string",
"name": "string"
}
],
"custom": true,
"description": "string"
},
"scope": {
"tier": "string",
"target": {
"id": "string",
"name": "string",
"url": "string"
},
"team": {
"id": "string",
"name": "string"
}
}
}
]
}
- application/json
- Schema
- Example (from schema)
Schema
{
"<field name>": [
"Errors related to field <field name>."
],
"non_field_errors": [
"Errors not related to any field specific field."
]
}
- application/json
- Schema
- Example (from schema)
Schema
{
"detail": "Incorrect authentication credentials."
}
- application/json
- Schema
- Example (from schema)
Schema
{
"detail": "You do not have permission to perform this action."
}
- application/json
- Schema
- Example (from schema)
Schema
{
"detail": "Unexpected error while handling your request."
}