ZRM Docs
API ReferenceAgent Rule

agentRule.create

Type: Mutation · Auth: Workspace admin

Input

FieldTypeRequiredDefaultDescription
titlestringYesTitle
contentstringYesContent
scopeenum(global, account, category, project_type)YesScope
scopeRefIdstringNoID of the associated scope ref
scopeRefLabelstringNoScope ref label
priorityintegerYes0Priority
isActivebooleanYestrueIs active
visibilityModeenum(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"
}

On this page