Skip to main content
POST
/
ai
/
votes
Upsert vote
curl --request POST \
  --url https://api.getcargo.io/v1/ai/votes \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "chatUuid": "<string>",
  "messageUuid": "<string>",
  "isUpvoted": true
}
'
{
  "vote": {
    "workspaceUuid": "<string>",
    "userUuid": "<string>",
    "chatUuid": "<string>",
    "messageUuid": "<string>",
    "isUpvoted": true,
    "updatedAt": "<string>"
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Request body schema.

chatUuid
string
required

Chat identifier.

messageUuid
string
required

Message identifier.

isUpvoted
boolean
required

Whether the message is upvoted.

Response

Successful response

vote
Vote · object
required

Vote details.