Chatbot Threads

Update Thread

Update thread of the chatbot. The following thread properties can be updated.

  1. Mode
  2. Webhook url
  3. Webhook token
  4. Chat User details
patch/v0/chatbots/{chatbotId}/threads/{threadId}

Request

  • Base URL: https://sitegpt.ai/api
  • URL: https://sitegpt.ai/api/v0/chatbots/{chatbotId}/threads/{threadId}
  • Auth: HTTP bearer

Path parameters

chatbotIdstring required

Id of the chatbot

threadIdstring required

Id of the chatbot thread

Request body

mode'AI' | 'AGENT'

Chat mode of the thread

webhookUrlstring

Webhook url for the thread where all messages are forwarded to

webhookTokenstring

This token will be sent in headers to the webhook url for all the messages

Response

OK

successboolean

Indicates whether this is success response or error response

messagestring

Overall message regarding the operation performed

dataobject nullable

Data returned from the server

Changes

No recorded changes to this operation across all 1 revision of this API.