Create Role

POST https://{{API_URL}}/roles/

Creates a single role and returns the record.

Request Params

KeyDatatypeRequiredDescription
**All 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"=>{"name"=>"Demo1234", "access_level"=>"read", "asset_groups"=>["All Linux"], "applications"=>["Bookstore"]}}