Chatbot Threads
Update Thread
Update thread of the chatbot. The following thread properties can be updated.
- Mode
- Webhook url
- Webhook token
- Chat User details
PATCH
/
v0
/
chatbots
/
{chatbotId}
/
threads
/
{threadId}
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
chatbotId
string
requiredId of the chatbot
threadId
string
requiredId of the chatbot thread
Body
application/json
Request body
mode
enum<string>
Chat mode of the thread
Available options:
AI
, AGENT
webhookUrl
string
Webhook url for the thread where all messages are forwarded to
webhookToken
string
This token will be sent in headers to the webhook url for all the messages
chatUser
object
Details of the user chatting in the thread
Response
200 - application/json
Success Response
success
boolean
Indicates whether this is success response or error response
message
string
Overall message regarding the operation performed
data
object | null
Data returned from the server
Was this page helpful?