Update API User Role
PUT/api-user-roles/:id/
Request
Path Parameters
- application/json
- application/x-www-form-urlencoded
- multipart/form-data
Body
required
account
- accountteam
- teamtarget
- target
Possible values: >= 12 characters
and <= 12 characters
user
object
required
Possible values: >= 12 characters
and <= 12 characters
A unique Base58 value identifying this object.
role
object
required
Possible values: >= 12 characters
and <= 12 characters
A unique Base58 value identifying this object.
scope
object
required
Possible values: [account
, team
, target
]
team
object
Possible values: >= 12 characters
and <= 12 characters
A unique Base58 value identifying this object.
target
object
Possible values: >= 12 characters
and <= 12 characters
A unique Base58 value identifying this object.
Body
required
account
- accountteam
- teamtarget
- target
Possible values: >= 12 characters
and <= 12 characters
user
object
required
Possible values: >= 12 characters
and <= 12 characters
A unique Base58 value identifying this object.
role
object
required
Possible values: >= 12 characters
and <= 12 characters
A unique Base58 value identifying this object.
scope
object
required
Possible values: [account
, team
, target
]
team
object
Possible values: >= 12 characters
and <= 12 characters
A unique Base58 value identifying this object.
target
object
Possible values: >= 12 characters
and <= 12 characters
A unique Base58 value identifying this object.
Body
required
account
- accountteam
- teamtarget
- target
Possible values: >= 12 characters
and <= 12 characters
user
object
required
Possible values: >= 12 characters
and <= 12 characters
A unique Base58 value identifying this object.
role
object
required
Possible values: >= 12 characters
and <= 12 characters
A unique Base58 value identifying this object.
scope
object
required
Possible values: [account
, team
, target
]
team
object
Possible values: >= 12 characters
and <= 12 characters
A unique Base58 value identifying this object.
target
object
Possible values: >= 12 characters
and <= 12 characters
A unique Base58 value identifying this object.
Responses
- 200
- 400
- 401
- 404
- 500
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
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.
{
"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": "Not found."
}
- application/json
- Schema
- Example (from schema)
Schema
{
"detail": "Unexpected error while handling your request."
}