PUT /api/roles
{
"role": {
"name": "newrole"
}
}
403
{
"error": {
"message": "Access denied",
"details": "Missing one of the required permissions: create_roles",
"missing_permissions": [
"create_roles"
]
}
}
| Param name | Description |
|---|---|
|
location_id optional |
Set the current location context for the request Validations:
|
|
organization_id optional |
Set the current organization context for the request Validations:
|
|
role required |
Validations:
|
|
role[name] required |
Validations:
|
|
role[description] optional , nil allowed |
Role description Validations:
|
|
role[location_ids] optional , nil allowed |
REPLACE locations with given ids Validations:
|
|
role[organization_ids] optional , nil allowed |
REPLACE organizations with given ids. Validations:
|