POST /api/roles/13-Organization%20admin/clone { "new_name": "Org Admin", "role": { "name": "Org Admin" } } 201 { "id": 22, "name": "Org Admin", "builtin": 0, "description": "Role granting all permissions except for managing organizations. It can be used to delegate administration of specific organization to a user. In order to create such role, clone this role and assign desired organizations", "origin": null, "cloned_from_id": 13 }
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:
|