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

  • The agent, as assistantId names it in an ai_agent block.

Body·

required
application/json

Whatever the agents API takes. GET /ai-agents/schema describes it.

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."
}