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>"
}
}Create or update a 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>"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Successful response
Vote details.
Show child attributes
Was this page helpful?