Register a rating for a content item.
PUT /api/v1/user/66a5db1f-2785-498d-9068-e24ddbba03f2/rating/6cb1b1c7-0022-4a13-ab8a-6e830d244e92 HTTP/1.1
Authorization: Bearer ...
Content-Type: application/json
{
"accountId": "66a5db1f-2785-498d-9068-e24ddbba03f2",
"contentId": "6cb1b1c7-0022-4a13-ab8a-6e830d244e92",
"value": "1"
}
----------------------------------------
HTTP/1.1 204 No Content
ETag: W/"a-bAsFyilMr4Ra1hIU5PyoyFRunpI"Authentication is required, and access is restricted to the user.
| Name | Description | Value |
|---|---|---|
| userId | the ID of the user as a GUID with dashes | string |
| contentId | the ID of the content to rate as a GUID with dashes | string |
Note: this request body is partially redundant with the URL; redundant information should be removed.
| Name | Description | Value |
|---|---|---|
| accountId | the user's ID as a GUID with dashes | string |
| contentId | the content ID as a GUID with dashes | string |
| value | the kind of rating to give, upvote (1) or downvote (0) | string, one of:
|
Successful responses are code 204. Error responses are standard.
NONE