Skip to main content

Update an agent

PATCH 

/agents/:agent_id

Changes the fields of an agent that the request names, and keeps the stored value of every omitted field. prompt, placeholders and metadata replace the stored values whole, and description accepts null to clear the description. Foundation4 validates the resulting prompt template and placeholders with the rules of agent creation, including stored values that the request leaves unchanged.

Permissions. Write on the agent.

Agents and prompt templates describes prompt templates and placeholders.

Request​

Responses​

The agent was updated. The body is the updated agent.