ai-agents
ai-agents

Update Agent

Update an AI Agent.

Template fork-on-edit (spec §5.2): if the target is a workspace_id=0 system template, materialize a workspace fork first via fork_template, then redirect the rest of the handler to the new fork's id.

patch/api/ai-agents/{agent_id}

Request

  • Base URL: https://api.dialogbrain.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.dialogbrain.com/api/ai-agents/{agent_id}
  • Auth: none declared

Path parameters

agent_idinteger required

Request body

namestring nullable
slugstring nullable
avatar_urlstring nullable
descriptionstring nullable
text_enginestring nullable
prompt_idinteger nullable
prompt_textstring nullable
auto_reply_rulesstring nullable
statusstring nullable
priorityinteger nullable
vision_enabledboolean nullable
memory_enabledboolean nullable

Per-agent master switch for the self-learning memory system ([MEMORY] injection + agent-context writes).

tasks_enabledboolean nullable

Per-agent gate for [ACTIVE TASKS] prompt injection (the tasks.* tools stay usable when off).

memory_scopestring nullable

Write-routing for agent-authored memory: 'agent' (private) | 'workspace' (shared).

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 5 revisions of this API.