Create Role
POST/v1/sandbox/:sandbox_id/role
Create Role, requires sandbox:config:edit permission
Request
Path Parameters
Sandbox ID
- application/json
Body
required
Array [
]
Possible values: non-empty and <= 125 characters
Name of the resource
Possible values: <= 250 characters
Description of the resource
custom_data
object
Custom data associated with the resource
login_loot_rewards
object[]
List of login loot rewards for this role
Loot ID for this login loot reward tied to this role
Default value: 0
Legacy loot ID for this login loot reward tied to this role
Default value: 92635edf-5b05-4c0b-bb78-4ab28176b5f1
Unique Identifier for this Role
Default value: 0
Legacy role ID for this role
Possible values: [none, locked, limited]
Type of Auth Bypass.
Responses
- 201
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Account ID of the user who last modified the resource
Timestamp of when the resource was last modified
Timestamp of when the resource was created
ID of the Sandbox
Possible values: non-empty and <= 125 characters
Name of the resource
Possible values: <= 250 characters
Description of the resource
custom_data
object
Custom data associated with the resource
login_loot_rewards
object[]
List of login loot rewards for this role
Loot ID for this login loot reward tied to this role
Default value: 0
Legacy loot ID for this login loot reward tied to this role
Default value: 92635edf-5b05-4c0b-bb78-4ab28176b5f1
Unique Identifier for this Role
Default value: 0
Legacy role ID for this role
Possible values: [none, locked, limited]
Type of Auth Bypass.
{
"last_modified_account_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"last_modified_timestamp": "2024-07-29T15:51:28.071Z",
"created_timestamp": "2024-07-29T15:51:28.071Z",
"sandbox_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"description": "string",
"custom_data": {},
"login_loot_rewards": [
{
"loot_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"legacy_loot_id": 0
}
],
"role_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"legacy_role_id": 0,
"auth_bypass": "none"
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}