Roles

Assign permissions to a role

This route assigns permissions to a role. Add the role ID as a path parameter to the route url and include the permission IDs in the request body as an array of strings. Any pre-existing permissions will be overridden by the new permissions. Use the get roles API to get the role IDs. Use the Get permissions API to get the permissions IDs.

put/resources/roles/v1/{roleId}/permissions

Request

Path parameters

roleIdstring required

Headers

frontegg-tenant-idstring

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

Request body

permissionIdsstring[] required

Set permission ids to attach to the role

Response

idstring required
vendorIdstring required
tenantIdstring required
keystring required
namestring required
descriptionstring required
isDefaultboolean required
firstUserRoleboolean required
levelnumber required
createdAtstring date-time required
updatedAtstring date-time required
permissionsstring[] required

Changes

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