创建反馈

Create new feedback

post

This endpoint allows users to submit feedback for a particular interaction or response.

Authorizations
x-portkey-api-keystringRequired
Body
trace_idstringRequired

Unique identifier for the request trace.

valueinteger · min: -10 · max: 10Required

Feedback value, an integer between -10 and 10.

weightnumber · float · max: 1Optional

Weight of the feedback, a float between 0 and 1. Default is 1.0.

Default: 1
Responses
200

Feedback successfully saved

application/json
post
/feedback
200

Feedback successfully saved

Last updated