There can be only one rating per interaction, therefore this operation does an update when called more than once with the same data. The api user acts on behalf of the end-user who is supposed to be the creator of the interaction.
Taskbase Public API (0.9.0)
Download OpenAPI description
Languages
Servers
https://developers.taskbase.com/
Bodyapplication/jsonrequired
Enum"UNCLEAR_EXPLANATION""UNHELPFUL""TOO_STRICT""INCORRECT_FEEDBACK""TOO_GENERIC""NOT_RELEVANT""CLEAR_EXPLANATION""HELPFUL_HINT""MOTIVATION_BOOST""CORRECT_ANSWER"
Example: "HELPFUL_HINT"
https://developers.taskbase.com/interactions/{interactionId}/end-user-rating
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://developers.taskbase.com/interactions/{interactionId}/end-user-rating' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"type": "GOOD",
"subtype": "HELPFUL_HINT",
"message": "This feedback was very helpful!"
}'Response
application/json
{ "type": "GOOD", "subtype": "HELPFUL_HINT", "message": "This feedback was very helpful!" }