Feedback

Upsert feedback

Update or insert feedback for a question_answer. Every time a user upvotes or downvotes a question_answer, this endpoint should be called. The user can also leave a comment with the feedback. This endpoint can be called multiple times for the same user and question_answer, and the feedback will be updated accordingly.

post/query/v1/feedback/upsert/

Request

  • Base URL: https://api.kapa.ai
  • URL: https://api.kapa.ai/query/v1/feedback/upsert/
  • Auth: one of:
    • API key in cookie sessionid
    • HTTP bearer
    • API key in header X-API-KEY

Request body

idinteger

The unique identifier of the feedback.

created_atstring date-time

The date and time when this record was created.

updated_atstring date-time

The date and time when this record was last updated.

user_identifierstring required

The user identifier of the feedback. This should be based on some unique identifier for the user, like a browser fingerprint.

reaction'upvote' | 'downvote'
question_answerstring uuid required

The question_answer that the feedback belongs to.

Response

total_upvotesinteger required

Total number of upvotes for the question answer

total_downvotesinteger required

Total number of downvotes for the question answer

Changes

No recorded changes to this operation across all 1 revision of this API.