POST /api/public/v1/roles/update

Changed on

Changes a role's name and the access areas the request names, by level in permissions or by action in grants; an area named in both takes its grants. An area left out keeps what the role held, so a caller that does not know an area or an action neither grants nor revokes it, and an empty list in grants takes an area away. A reach left out stays as chosen, or follows the levels where none was ever chosen. A request naming grants, or changing a role built action by action, may add only actions the caller holds across the organization, else FORBIDDEN grantNotHeld. In the answer permissions leaves out an area whose actions no level makes, so writing it back keeps that area.

Request

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

Request body

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

Response

OK

unknown required

Changes