Permission

Entity description

Access to a capability/feature that can be granted to a staff member.

Properties

NameDescriptionTypeExample
unique_codeThe unique identifier of the Permissionstringpayments.invoices.export
nameThe name of the permission shown to the user in the business's languagestringExport Invoices
descriptionThe description of the permission shown to the user in the business's languagestringCan export invoices
positionThe display position of the permission in the list of permissionsinteger1
is_changableA flag to indicate if the permission, can be changed by the staff after a role was assigned. By default, permissions are editable, but some permissions like business_management.admin_account.manage cannot be changed after being assigned. Any attempt to change it in the business role or the permissions override will result in a returned errorbooleantrue
created_atDate the Permission was createdstring2021-07-20T14:00:00.000Z
updated_atDate the Permission was last updatedstring2021-07-20T14:00:00.000Z

Example

{
  "unique_code": "payments.invoices.export",
  "name": "Export Invoices",
  "description": "Can export invoices",
  "position": 1,
  "is_changable": true,
  "created_at": "2021-07-20T14:00:00.000Z",
  "updated_at": "2021-07-20T14:00:00.000Z"
}