name, description
Standard CRUD applies. See standard endpoints.
Requires admin access, or the
Role.Read and Role.Update permissions.Fields
Every property the API returns for a role.Two permission fields
permissionsV2 is the form BuildingSwell writes today: a list of statements, each
naming a subject, the actions it allows, and optional row and field limits.
permissions is the older flat list of strings, kept so existing integrations keep
working. Read both, and write permissionsV2.
Statement shape
Duplicate a role
Copying an existing role is usually faster than assembling permissions from scratch:isApiKey marks the synthetic role behind an API key. Leave it alone on roles
you create.