PUT user/{userId}/rating/{contentId}

Related

Register a rating for a content item.

Example

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"

Security

Authentication is required, and access is restricted to the user.

URL Parameters

NameDescriptionValue
userIdthe ID of the user as a GUID with dashesstring
contentIdthe ID of the content to rate as a GUID with dashesstring

Request Body

Note: this request body is partially redundant with the URL; redundant information should be removed.

NameDescriptionValue
accountIdthe user's ID as a GUID with dashesstring
contentIdthe content ID as a GUID with dashesstring
valuethe kind of rating to give, upvote (1) or downvote (0)string,
one of:
  • 0
  • 1

Response

Successful responses are code 204. Error responses are standard.

Response Body

NONE