Update Role
PUT https://{{API_URL}}/roles/:id
Update a single role's attributes by ID.
When updating asset groups for a role, all current asset groups for a role will be over written by the array passed in the update params. To add asset groups to a role without overwriting a role's current asset groups use the addassetgroups endpoint. If you would like to update custom role permissions, please use the custom_permissions endpoint.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
**All other Params updated in Body Tab | null |
Request Body
{"role"=>{"name"=>"new role", "applications"=>["Test PHP", "Aziz Test"]}}