CreateAiRoleLimitRequest
A request or response body; the type column links to the schemas it refers to.
CreateAiRoleLimitRequest
| Field | Type | Required | Description |
|---|---|---|---|
| audience | string | yes | one of "everyone" | "trainers" | "superusers" | "role" |
| department_role_id | string (uuid) | null | no | The department role, for `audience: role`; left out otherwise. |
| agents_enabled | boolean | yes | May start agent sessions. |
| mcp_enabled | boolean | yes | May call the MCP server with a token of their own. |
| daily_turn_limit | integer | null | yes | Agent turns a day (UTC). Null for no limit. minimum 0 · maximum 2000000000 |
| daily_token_limit | integer | null | yes | Model tokens a day (UTC), input and output together. Null for no limit. minimum 0 · maximum 2000000000 |
| max_sessions | integer | null | yes | Open agent sessions at once; archived ones do not count. Null for no limit. minimum 0 · maximum 2000000000 |
| allowed_model_ids | array of string | yes | The models agents may run on; empty for every model the deployment offers. at most 50 items |
| delegated_scopes | array of string | yes | 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 |
{
"audience": "everyone",
"department_role_id": "1b671a64-40d5-491e-99b0-da01ff1f3341",
"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"
]
}