Rate content

post

/km/api/v1/content/{id}/rate

This method rates the latest valid version of the Content object with the specified ID.

The latest valid version of the Content object is either the published live or the latest version of the Content object. The request payload and the URI for the new resource must be specified along with the POST method.

Note: The content owner cannot rate the content.

Response Errors

The possible error response for this method is as follows:

  • OKDOM-GEN0001

    The error occurs when the specified ID is invalid.

Request

Supported Media Types
Path Parameters
Body ()
The single answer rating request payload should include the survey question answer's recordId and could optionally include the survey's recordId (retrieved via /dataForms/{id}), the locale's recordId and the answerComment element.
Root Schema : SingleAnswerRating
Type: object
Title: SingleAnswerRating
Show Source
Nested Schema : DataFormAnswerKey
Type: object
Title: DataFormAnswerKey
Show Source
  • links
  • The unique record ID of the DataFormAnswer object.
  • The reference key for the DataFormAnswer object. DataFormAnswer objects support multiple languages. This field can be used to identify the associated objects for all languages.
Nested Schema : LocaleKey
Type: object
Title: LocaleKey
Show Source
Nested Schema : DataFormKey
Type: object
Title: DataFormKey
Show Source
Nested Schema : UserKey
Type: object
Title: UserKey
Show Source
  • Email of the User object
  • The ExternalId is the Id of the corresponding User from an external system. It, along with ExternalType, can be used to bridge the gap between a User from this system and a User from an external system.
  • The ExternalType is the type of the corresponding User from an external system. It, along with ExternalId, can be used to bridge the gap between a User from this system and a User from an external system.
  • links
  • User's full name
  • The unique record ID of the User object.
Back to Top

Response

204 Response

No Content.
Back to Top