Description
This will update an article's vote count by what the user passes in.
Request Body
Accepts the following keys:
- article_id:
Number
required - inc_votes:
Number
required
{
"article_id": 37,
"inc_votes": 32
}
Example Response
If a successful patch request is made to the specified comment, this will result in the votes property for that comment increasing by the specified amount.
{
"article_id": 37,
"title": "Thank you Christian and Mitch",
"topic": "coding",
"author": "grumpy19",
"body": "You two have been the most amazing mentors that we could have ever asked for. On October 28th 2022 for the Northcoders August 30th Cohort, we have had to bid our two favourite mentors goodbye. However, goodbyes are only temporary and we will see you both again soon. All of the best for the future cohorts and more you two!",
"created_at": "2022-10-29T16:01:34.834Z",
"votes": 32
}