Replace an agent
Replaces the agent whole. Anything the body leaves out goes back to its default, so send the fields you want kept.
Needs the permission to edit bots. Counts against your brand's write limit.
Path Parameters
- Type: stringFormat: uuidagent
_id requiredThe agent, as
assistantIdnames it in anai_agentblock.
Body·
required
application/json
Whatever the agents API takes. GET /ai-agents/schema describes it.
- additionalPropertyType: anythingproperty
Name
Responses
- application/json
- application/json
- application/json
- application/json
Request Example for put/ai-agents/{agent_id}
curl https://api.landbot.io/v3/ai-agents/123e4567-e89b-12d3-a456-426614174000 \
--request PUT \
--header 'Content-Type: application/json' \
--cookie 'sessionid=YOUR_SECRET_TOKEN' \
--data '{
"additionalProperty": "anything"
}'
{
"detail": "Authentication credentials were not provided."
}