API ReferenceAgent Rule
agentRule.create
Type: Mutation · Auth: Workspace admin
Input
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| title | string | Yes | — | Title |
| content | string | Yes | — | Content |
| scope | enum(global, account, category, project_type) | Yes | — | Scope |
| scopeRefId | string | No | — | ID of the associated scope ref |
| scopeRefLabel | string | No | — | Scope ref label |
| priority | integer | Yes | 0 | Priority |
| isActive | boolean | Yes | true | Is active |
| visibilityMode | enum(global, workspace_local, shared) | Yes | "workspace_local" | Visibility mode |
Example
{
"title": "Example Title",
"content": "example",
"scope": "global",
"scopeRefId": "550e8400-e29b-41d4-a716-446655440000",
"scopeRefLabel": "example",
"priority": 0,
"isActive": true,
"visibilityMode": "global"
}