Bulk Create API User Roles
POST/api-user-roles/bulk/create/
Add roles to multiple API users in one operation.
Request
- application/json
- application/x-www-form-urlencoded
- multipart/form-data
Body
required
Array [
account
- accountteam
- teamtarget
- target]
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
Array [
account
- accountteam
- teamtarget
- target]
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
Array [
account
- accountteam
- teamtarget
- target]
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
- 201
- 400
- 401
- 500
- application/json
- Schema
- Example (from schema)
Schema
Array [
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": "Unexpected error while handling your request."
}