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 '{}'
import requests

url = "https://paradigm.lighton.ai/api/v2/rate/{feedback_type_id}/{completion_id}"

payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};

fetch('https://paradigm.lighton.ai/api/v2/rate/{feedback_type_id}/{completion_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

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

200

No response body