POST /api/roles { "role": { "name": "staff", "organizations": [], "locations": [] } } 201 { "builtin": 0, "cloned_from_id": null, "name": "staff", "id": 18, "description": null, "origin": null, "filters": [], "locations": [], "organizations": [] }
Param name | Description |
---|---|
location_id optional |
Scope by locations Validations:
|
organization_id optional |
Scope by organizations 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:
|