Retrieve User Role
GET/user-roles/:id/
Request
Path Parameters
id stringrequired
Responses
- 200
- 400
- 401
- 404
- 500
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
id stringrequired
A unique Base58 value identifying this object.
user
object
required
id stringrequired
A unique Base58 value identifying this object.
email email
Possible values: <= 254 characters
Email of the user.
name stringrequired
Possible values: <= 60 characters
Name of the user.
role
object
required
id stringrequired
A unique Base58 value identifying this object.
name stringrequired
Possible values: <= 255 characters
Role's name.
permissions
object[]
id stringrequired
Possible values: <= 255 characters
Textual identifier.
name stringrequired
Possible values: <= 255 characters
Permission name.
custom booleanrequired
description stringnullable
Short description.
scope
object
required
tier stringrequired
target
object
id stringrequired
A unique Base58 value identifying this object.
name stringrequired
url urirequired
Target URL.
team
object
id stringrequired
A unique Base58 value identifying this object.
name stringrequired
{
"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> string[]
non_field_errors string[]
{
"<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 string
{
"detail": "Incorrect authentication credentials."
}
- application/json
- Schema
- Example (from schema)
Schema
detail string
{
"detail": "Not found."
}
- application/json
- Schema
- Example (from schema)
Schema
detail string
{
"detail": "Unexpected error while handling your request."
}
Loading...