import requests
url = "https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/feedbacks/{feedback_id}/"
payload = {
"feedback": "<string>",
"is_positive": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({feedback: '<string>', is_positive: true})
};
fetch('https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/feedbacks/{feedback_id}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request PATCH \
--url https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/feedbacks/{feedback_id}/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"feedback": "<string>",
"is_positive": true
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"given_by": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "[email protected]"
},
"status": "to_review",
"feedback": "<string>",
"context": {
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"query_id": 123,
"source": "<string>",
"user_query": "<string>",
"additional_details": "<string>"
},
"is_positive": true,
"user_message": "<string>",
"conversation_title": "<string>",
"suggested_action_type": "<string>",
"suggested_action_data": {}
}{
"error": "User not found"
}{
"error": "Authentication credentials were not provided."
}{
"error": "User not found"
}{
"error": "Not found."
}Update feedback status
Mark feedback as reviewed or update other fields.
Access Control:
- Admins can update any feedback
- Regular users can only update feedback they submitted
Impersonation:
- When using impersonation, the ownership check is performed against the impersonated user
- This allows updating feedback submitted by the impersonated user
import requests
url = "https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/feedbacks/{feedback_id}/"
payload = {
"feedback": "<string>",
"is_positive": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({feedback: '<string>', is_positive: true})
};
fetch('https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/feedbacks/{feedback_id}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request PATCH \
--url https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/feedbacks/{feedback_id}/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"feedback": "<string>",
"is_positive": true
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"given_by": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "[email protected]"
},
"status": "to_review",
"feedback": "<string>",
"context": {
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"query_id": 123,
"source": "<string>",
"user_query": "<string>",
"additional_details": "<string>"
},
"is_positive": true,
"user_message": "<string>",
"conversation_title": "<string>",
"suggested_action_type": "<string>",
"suggested_action_data": {}
}{
"error": "User not found"
}{
"error": "Authentication credentials were not provided."
}{
"error": "User not found"
}{
"error": "Not found."
}Authorizations
Use Authorization: Bearer
Headers
Email of the user to impersonate. Requires CAN_IMPERSONATE_OTHER_USERS permission.
If the target user is not found or does not have access to the project, the request
proceeds as the authenticated user. Contact Clarifeye to enable this permission.
Path Parameters
UUID of the project
UUID of the feedback
Body
Response
Feedback updated successfully
User who submitted the feedback
Show child attributes
Show child attributes
to_review: Feedback pending review (default)reviewed: Feedback has been reviewed
to_review, reviewed Feedback text comment
Free-form context, echoed back as submitted at creation. Conversation feedback carries conversation_id/query_id/source; MCP interaction feedback carries user_query; direct feedback may carry additional_details.
Show child attributes
Show child attributes
true: Positive feedbackfalse: Negative feedbacknull: Neutral
The user message that was responded to (computed field)
Title of the conversation (computed field)
Auto-generated suggested action type
Auto-generated suggested action data