Roles
delete
Deletes a role.
Authorizations
Path parameters
namestringRequired
Responses
204
Successful deletion.
default
Error object.
application/json
delete
No content
patch
Updates a role.
Authorizations
Path parameters
namestringRequired
Body
Updates a role. Absent fields are left untouched.
display_namestring · min: 1 · max: 150Optional
Updates the display name of the role.
Responses
200
Happy response.
application/json
default
Error object.
application/json
patch
get
Returns a specific role.
Authorizations
Path parameters
namestringRequired
Responses
200
Happy response.
application/json
default
Error object.
application/json
get
post
Creates a new role.
Authorizations
Body
Contains the fields needed to create a role.
namestring · hq-resource-name · min: 1 · max: 63Required
Sets the unique name of the new role. It must be a valid HQ resource name: it can only contain lowercase alphanumeric characters or hyphens; hyphens cannot appear at the end or start; the length is 63 characters at most.
display_namestring · min: 1 · max: 150Optional
Sets the display name of the new role. If not provided, the value of "name" will be used.
Responses
201
Happy response.
application/json
default
Error object.
application/json
post
get
Returns all roles.
Authorizations
Responses
200
Happy response.
application/json
default
Error object.
application/json
get
Last updated
Was this helpful?