PATCH
/
v0
/
chatbots
/
{chatbotId}
/
messages
/
{messageId}
curl --request PATCH \
  --url https://sitegpt.ai/api/v0/chatbots/{chatbotId}/messages/{messageId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "threadId": "dd56a3d0-dba7-4df0-b62b-58513230b053",
  "reaction": "POSITIVE"
}'
{
  "success": true,
  "message": "Updated the message successfully",
  "data": null
}

Authorizations

Authorization
string
headerrequired

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

Path Parameters

chatbotId
string
required

Id of the chatbot that the message belong to

messageId
string
required

Id of the message that has to be updated

Body

application/json
threadId
string

Id of the thread that the message belongs to

reaction
enum<string>

User's reaction to the message

Available options:
POSITIVE,
NEGATIVE,
NEUTRAL

Response

200 - application/json
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