Space Docs
API ReferenceAgent Rule

agentRule.create

Type: Mutation · Auth: Workspace admin

Input

FieldTypeRequiredDefaultDescription
titlestringYes—Title
contentstringYes—Content
scopeenum(global, account, category, project_type)Yes—Scope
scopeRefIdstringNo—ID of the associated scope ref
scopeRefLabelstringNo—Scope ref label
priorityintegerYes0Priority
isActivebooleanYestrueIs active
visibilityModeunknownNo—Visibility mode

Example

{
  "title": "Example Title",
  "content": "example",
  "scope": "global",
  "scopeRefId": "550e8400-e29b-41d4-a716-446655440000",
  "scopeRefLabel": "example",
  "priority": 0,
  "isActive": true
}

On this page