Skip to main content
POST
/
api
/
v2
/
rate
/
{feedback_type_id}
/
{completion_id}
Create a completion feedback
curl --request POST \
  --url https://paradigm.lighton.ai/api/v2/rate/{feedback_type_id}/{completion_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "value": 123,
  "flag": true,
  "comment": "<string>",
  "tag": "<string>"
}
'
{
  "code": 400,
  "message": "Bad Request",
  "details": "Invalid input parameters.",
  "error": "bad_request",
  "error_description": "The request was malformed or invalid."
}

Authorizations

Authorization
string
header
required

Bearer token authentication

Path Parameters

completion_id
string
required
feedback_type_id
integer
required

Body

value
number<double> | null
flag
boolean | null

Field used in case of boolean type

comment
string | null
tag
string | null
Maximum string length: 120

Response

No response body