Skip to content

Create Role (GraphQL)

Creates a new admin role with a name, description, and permission set.

Operation

OperationTypePurpose
createAdminSettingsRoleMutationCreate a role

Quirks

  • permissionType is either custom or all.
  • When permissionType is custom, the permissions string array is required — supply the permission keys this role should grant.
  • When permissionType is all, omit permissions (the role is granted full access; any list is ignored and stored as []).

Released under the MIT License.