POST /api/public/v1/roles/create

Changed on

Creates a custom role from a level per access area (permissions), from the actions granted per area (grants), or from levels with grants naming the areas that differ from them. orderReach says whether its order read covers the member's own joined shift or every shift; left out, it follows the levels, or the readAllShifts action in grants. A request naming grants may give only actions the caller holds across the organization, else FORBIDDEN grantNotHeld. The answer carries the role's actions per area as grants; permissions holds the level of each area a level describes and leaves out an area whose actions no level makes.

Request

  • Base URL
    https://app.fortuneos.ai
  • Auth
    none declared

Request body

object required
organizationId, string required
name, string required
permissions, object
grants, object
orderReach, 'ownShift' | 'allShifts'

Response

OK

unknown required

Changes