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