Roles

List Role Permissions

get

Return a list of permissions available for Roles.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200

Object of available role permissions

application/json
get
/api/v1/roles/permissions

List Roles

get

Return a list of all Roles.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200

Role response object

application/json
get
/api/v1/roles

Create Role

post

Create a Role from the supplied object. Do NOT submit an ID. IDs are auto generated and immutable.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
objectOptional
Responses
post
/api/v1/roles

Get Role

get

Fetches a specific Role from the ID supplied in the path.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

String ID of the role to get

Responses
200

Role response object

application/json
get
/api/v1/roles/{id}

Update Role

put

Update a Role given the provided object. This does not do a diff. You must send the complete object.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

The ID of the Role to be updated

Body
objectOptional
Responses
200

Role response object

application/json
put
/api/v1/roles/{id}

Delete Role

delete

Deletes the Role. API will return a 409 Conflict if the role is in use.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

The ID of the Role to be retrieved

Responses
delete
/api/v1/roles/{id}

No content

Last updated