PUT /api/roles/8-Destroy%20hosts { "role": { "name": "staff" } } 200 { "builtin": 0, "cloned_from_id": null, "name": "staff", "id": 8, "description": null, "origin": "", "filters": [ { "id": 10997177 } ], "locations": [], "organizations": [] }
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:
|