Skip to main content
PATCH
/
v1
/
chatbots
/
account
/
{accountId}
/
chatbot
/
{chatbotId}
Update Chatbot
curl --request PATCH \
  --url https://interhemispheric-unwet-paulene.ngrok-free.dev/api/v1/chatbots/account/{accountId}/chatbot/{chatbotId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Updated Bot Name",
  "description": "Updated description",
  "isActive": true
}
'
{
  "success": true,
  "message": "Chatbot updated successfully",
  "data": {
    "chatbotId": "361628903185318481",
    "name": "Updated Bot Name",
    "description": "Updated description",
    "isActive": true,
    "createdByUserId": "360596271623307865",
    "createdAt": "2024-01-15T10:30:00.000Z",
    "updatedAt": "2024-06-22T12:00:00.000Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

accountId
string
required

ID of the account the chatbot belongs to

Example:

"360596271623307865"

chatbotId
string
required

ID of the chatbot to update

Example:

"361628903185318481"

Body

application/json
name
string

New name for the chatbot. Must be unique within the account.

Example:

"Updated Bot Name"

description
string

New description. Max 100 characters.

Example:

"Updated description"

isActive
boolean

Whether the chatbot is active

Example:

true

Response

Success

success
boolean
Example:

true

message
string
Example:

"Chatbot updated successfully"

data
object