PUT /api/roles/16 { "role": { "location_ids": [ 255093256 ], "organization_ids": [ 447626438 ] } } 200 { "builtin": 0, "cloned_from_id": null, "name": "New Role", "id": 16, "description": null, "origin": null, "filters": [ { "id": 1062414188 } ], "locations": [ { "id": 255093256, "name": "Location 1", "title": "Location 1", "description": null } ], "organizations": [ { "id": 447626438, "name": "Organization 1", "title": "Organization 1", "description": 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:
|