POST /api/roles/16/clone { "name": "New Role", "role": { "description": "updated description", "organization_ids": [ 61304186 ], "name": "New Role" } } 201 { "id": 17, "name": "New Role", "builtin": 0, "description": "updated description", "origin": null, "cloned_from_id": 16 }
参数名字 | 描述 |
---|---|
location_id 选填 |
Set the current location context for the request Validations:
|
organization_id 选填 |
Set the current organization context for the request Validations:
|
id 必填 |
Validations:
|
role 必填 |
Validations:
|
role[name] 选填 |
Validations:
|
role[description] 选填 , 允许空值 |
角色描述 Validations:
|
role[location_ids] 选填 , 允许空值 |
使用给定 id 替换位置 Validations:
|
role[organization_ids] 选填 , 允许空值 |
使用给定 id 替换机构 Validations:
|