Bulk Operations User Roles
POST/user-roles/bulk/operations/
add/update/delete multiple user roles in one operation.
Request
- application/json
- application/x-www-form-urlencoded
- multipart/form-data
Body
Array [
account
- accountteam
- teamtarget
- target]
Array [
account
- accountteam
- teamtarget
- target]
Array [
]
create
object[]
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.
update
object[]
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.
delete
object[]
Possible values: >= 12 characters
and <= 12 characters
Body
Array [
account
- accountteam
- teamtarget
- target]
Array [
account
- accountteam
- teamtarget
- target]
Array [
]
create
object[]
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.
update
object[]
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.
delete
object[]
Possible values: >= 12 characters
and <= 12 characters
Body
Array [
account
- accountteam
- teamtarget
- target]
Array [
account
- accountteam
- teamtarget
- target]
Array [
]
create
object[]
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.
update
object[]
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.
delete
object[]
Possible values: >= 12 characters
and <= 12 characters
Responses
- 200
- 400
- 401
- 500
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
]
Array [
Array [
]
]
create
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.
update
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.
delete
object
List of object IDs.
{
"create": [
{
"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"
}
}
}
],
"update": [
{
"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"
}
}
}
],
"delete": {
"ids": [
"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."
}