Authorizations
Body
application/json
Response
200 - application/json
Feedback successfully saved
The response is of type object
.
from portkey_ai import Portkey
portkey = Portkey(api_key="PORTKEY_API_KEY")
feedback = portkey.feedback.create(
trace_id="REQUEST_TRACE_ID",
value=1
)
print(feedback)
{
"status": "<string>",
"message": "<string>",
"feedback_ids": [
"<string>"
]
}
This endpoint allows users to submit feedback for a particular interaction or response.
from portkey_ai import Portkey
portkey = Portkey(api_key="PORTKEY_API_KEY")
feedback = portkey.feedback.create(
trace_id="REQUEST_TRACE_ID",
value=1
)
print(feedback)
{
"status": "<string>",
"message": "<string>",
"feedback_ids": [
"<string>"
]
}
Feedback successfully saved
The response is of type object
.
Was this page helpful?