Skip to content

Update Role (GraphQL)

Updates an existing role's name, description, permission type, and permission set.

Operation

OperationTypePurpose
updateAdminSettingsRoleMutationUpdate a role

Quirks

  • input.id is the IRI form (/api/admin/settings/roles/{id}).
  • Switching permissionType to all clears permissions to [] — the response above shows this: the role was custom with permission keys before the update and comes back with an empty permissions array.
  • When permissionType is custom, supply the full permissions string array you want the role to have.

TIP

All operations require an admin Bearer token — see Authentication.

Released under the MIT License.