StaffCustomRole

Schema #/components/schemas/StaffCustomRole of contract 1.0.0-draft.17.

  • id Uuidrequiredread-only

    Fields of id
  • key stringrequired

    pattern ^[a-z][a-z0-9_-]{1,62}$

  • name stringrequired

    max length 100

  • baseRole StaffRolerequired

  • capabilities array of stringrequired

    Subset of the base role's capabilities (custom roles only narrow).

  • memberCount integerrequiredread-only

    min 0

  • createdAt Timestamprequiredread-only

    Fields of createdAt
  • updatedAt Timestamprequiredread-only

    Fields of updatedAt
  • archived booleanrequired

    Archived roles cannot be assigned; members keep them until reassigned.