Skip to main content
PATCH
Update a chatbot

Authorizations

Authorization
string
header
required

A project API key, created in the dashboard.

Path Parameters

chatbot
string
required

ID of the chatbot.

Body

application/json

Unknown parameters return 422. A chatbot's AI settings and business name are set in its flow's AI blocks in the dashboard, so ai and business_name aren't accepted.

name
string
Required string length: 1 - 125
timezone
string

An IANA time zone name, such as America/Toronto. Offsets and abbreviations aren't accepted.

Maximum string length: 64

Response

The updated chatbot.

A flow-builder chatbot. You build and publish its flow, including the AI settings of its AI blocks, in the dashboard.

object
any
required
id
string
required

Unique identifier for the chatbot. Use it as agent_id in endpoints for resources that belong to the chatbot, such as contacts and labels.

Example:

"3132353852"

name
string
required
Example:

"Order bot"

platform
enum<string>
required

What the chatbot was built for. The API creates web chatbots. WhatsApp chatbots are created and connected in the dashboard.

Available options:
web,
whatsapp
status
enum<string>
required

Suspended chatbots can be retrieved and deleted, but not updated or duplicated.

Available options:
active,
suspended
published
boolean
required

Whether the flow is published. A chatbot can only chat once its flow is published in the dashboard.

timezone
string | null
required

An IANA time zone name.

Example:

"America/Toronto"

created_at
string<date-time> | null
required