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