Update a chatbot
PATCH/v1/chatbots/{chatbotId}
Change the name, instructions, language or model of a chatbot with the legacy v1 API by sending only the fields you want to change.
Working draft. These docs are illustrative: names, endpoints and examples describe the intended behaviour and can change before launch.
Changes the core fields of a chatbot. Call it when you tune the instructions from a script or rename a chatbot.
Request
PATCH /v1/chatbots/{chatbotId}
Path parameters:
| Name | Type | Required | Description |
|---|---|---|---|
chatbotId |
string | Yes | The ID of the chatbot, starting with agt_. |
Body fields. Send only the ones you want to change:
| Name | Type | Required | Description |
|---|---|---|---|
name |
string | No | New display name. |
instructions |
string | No | New instructions. The text replaces the old instructions in full. |
language |
string | No | Main language as a two-letter code, for example de. |
model |
string | No | The model the chatbot answers with. |
Fields you leave out keep their value. To change visibility or the greeting messages, use Update chatbot settings. In v2 the equivalent is Update agent.
Example request
curl -X PATCH https://api.askocto.co/v1/chatbots/agt_8f3k2m \
-H "Authorization: Bearer $OCTO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Store support EU",
"instructions": "Answer in the language of the customer. Quote delivery times in business days."
}'
const response = await fetch("https://api.askocto.co/v1/chatbots/agt_8f3k2m", {
method: "PATCH",
headers: {
Authorization: `Bearer ${process.env.OCTO_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
name: "Store support EU",
instructions: "Answer in the language of the customer. Quote delivery times in business days.",
}),
})
console.log(await response.json())
Example response
A successful call returns 200 OK with the updated chatbot.
{
"id": "agt_8f3k2m",
"name": "Store support EU",
"type": "support",
"status": "live",
"model": "octo-balanced",
"instructions": "Answer in the language of the customer. Quote delivery times in business days.",
"language": "en",
"createdAt": "2026-03-14T09:30:00Z",
"updatedAt": "2026-03-21T08:15:00Z",
"settings": {
"visibility": "public",
"initialMessages": ["Hi, how can I help?"],
"suggestedMessages": ["Where is my order?"]
}
}
Response fields
The response is the full chatbot object, the same as in Get all chatbots. updatedAt moves to the time of this change.
Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_request |
A field has the wrong type, or the body is empty. |
| 401 | unauthorized |
The API key is missing, malformed or revoked. |
| 404 | not_found |
No chatbot with this ID exists in your workspace. |
| 429 | rate_limited |
Too many requests. Wait for the number of seconds in the Retry-After header. |