addRating

suspend fun addRating(rating: Float): Result<Unit>

Adds a rating to a portal item that the user has access to. Only one rating can be given to a portal item per user. If this call is made on an already rated portal item, the new rating will overwrite the current one. A user cannot rate their own portal item. This method is only available to authenticated users.

Return

a Result indicating if the rating is applied successfully or not

Since

200.0.0

Parameters

rating

the rating to add to the portal item. This value must be between 1.0 and 5.0, otherwise it is coerced in the range.