POST /api/roles/14/clone
{
"name": "New Role",
"role": {
"location_ids": [],
"organization_ids": [],
"name": "New Role"
}
}
201
{
"id": 15,
"name": "New Role",
"builtin": 0,
"description": "default description",
"cloned_from_id": 14,
"origin": null
}
| 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:
|