AiRoleLimit

A request or response body; the type column links to the schemas it refers to.

AiRoleLimit

FieldTypeRequiredDescription
idstring (uuid)yes—
audiencestringyes

one of "everyone" | "trainers" | "superusers" | "role"

department_role_idstring (uuid) | nullyes—
roleobject | nullyes

The role a `role` rule is for.

agents_enabledbooleanyes

May start agent sessions.

mcp_enabledbooleanyes

May call the MCP server with a token of their own.

daily_turn_limitinteger | nullyes

Agent turns a day (UTC). Null for no limit.

minimum 0 · maximum 2000000000

daily_token_limitinteger | nullyes

Model tokens a day (UTC), input and output together. Null for no limit.

minimum 0 · maximum 2000000000

max_sessionsinteger | nullyes

Open agent sessions at once; archived ones do not count. Null for no limit.

minimum 0 · maximum 2000000000

allowed_model_idsarray of stringyes

The models agents may run on; empty for every model the deployment offers.

at most 50 items

delegated_scopesarray of stringyes

The most an agent's delegated token may carry, before it is cut down to the person's own token's scopes. Empty: agents get no learning record tools.

at most 100 items

updated_atstring (date-time)yes—
jsonExample
{
  "id": "1b671a64-40d5-491e-99b0-da01ff1f3341",
  "audience": "everyone",
  "department_role_id": "1b671a64-40d5-491e-99b0-da01ff1f3341",
  "role": {
    "name": "string",
    "department_name": "string",
    "organization_name": "string",
    "organization_slug": "string"
  },
  "agents_enabled": true,
  "mcp_enabled": true,
  "daily_turn_limit": 0,
  "daily_token_limit": 0,
  "max_sessions": 0,
  "allowed_model_ids": [
    "string"
  ],
  "delegated_scopes": [
    "records:read",
    "certifications:read"
  ],
  "updated_at": "2026-01-01T00:00:00.000Z"
}