Add Application(s) to Role

PUT https://{{API_URL}}/roles/:id/add_applications

Update a single role's attributes by ID.

Request Params

KeyDatatypeRequiredDescription
**All other Params updated in Body Tabnullrole - object
name - string - The name of the role.
access_level - string - The access level assigned to the role. This must be either "read" or "write"
asset_groups - array of strings - An array of asset group names that you want associated with the role. If an asset group name cannot be found an error will be returned.
asset_groups - array of strings - An array of asset group names that you want associated with the role. If an asset group name cannot be found an error will be returned.
applications - array of strings - An array of application names to add to a role's set of applications.

Request Body

{"role"=>{"applications"=>["Valid application name", "Another application name"]}}