v1

latestOpenAPI 3.0.12026-08-0435481.5 MB
Roles

Create a role

Create a new role with the given data.

post/api/roles

Request body

tenantIdstring
namestring required

The name of the role. It should be unique within the tenant.

descriptionstring required
type'User' | 'MachineToMachine'

The type of the role. It cannot be changed after creation.

isDefaultboolean
scopeIdsstring[]

The initial API resource scopes assigned to the role.

Response

The created role.

tenantIdstring required
idstring required
namestring required
descriptionstring required
type'User' | 'MachineToMachine' required
isDefaultboolean required