Vote up or down on a particular answer to a question by answer_id.
POST https://api.yotpo.com/answers/1234/vote/down
{
"status": {
"code": 200,
"message": "OK"
},
"response": {
"vote": {
"id": 11 //incremental vote id
}
}
}
{}
PATH PARAMS
Parameter | Type | Description |
---|---|---|
answer_id* | string | The ID of the answer |
vote_type* | string | Vote type - up or down |
Please note:
Retrieve an
answer_id
param by utilizing the Retrieve Questions and Answers for a Product endpoint. Youranswer_id
will appear as such:
"sorted_public_answers": [
{
"id": 15421,
Please note:
The
id
in the response is an index that is incremented. It is not connected to thereview_id
.