Account roles

Create a new role

This route adds a new role for a specific tenant. Send the tenant ID in the frontegg-tenant-id header. Add the required permissions within the request body to customize the role.

post/resources/roles/v2

Request

Headers

frontegg-tenant-idstring

For relating a role to a specific tenant, use get tenants API to find the tenant ids

Request body

keystring required
namestring required
descriptionstring
isDefaultboolean

This role will be assigned for every user that will be added without specified roles

baseRoleIdstring required

Role level of the new role will be based on this parameter

permissionIdsstring[] required

Response

idstring required
vendorIdstring required
tenantIdstring required
keystring required
namestring required
descriptionstring required
isDefaultboolean required
permissionsstring[] required

Changes

No recorded changes to this operation across all 1 revision of this API.