PATCH
/
v0
/
chatbots
/
{chatbotId}
/
threads
/
{threadId}
curl --request PATCH \
  --url https://sitegpt.ai/api/v0/chatbots/{chatbotId}/threads/{threadId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "mode": "AI",
  "webhookUrl": "https://example.com",
  "webhookToken": "xyz",
  "chatUser": {
    "email": "abc@gmail.com",
    "name": "ABC",
    "phoneNumber": "XXXXXXXXXXX"
  }
}'
{
  "success": true,
  "message": "Updated the chatbot thread successfully",
  "data": null
}

Authorizations

Authorization
string
header
required

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

Path Parameters

chatbotId
string
required

Id of the chatbot

threadId
string
required

Id of the chatbot thread

Body

application/json

Request body to update chatbot thread

Request body

Response

200
application/json

OK

Success Response