Write a label
curl --request POST \
--url https://judged.systems/api/evaluations/{id}/labels \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"questionId": "<string>",
"answer": {
"type": "choice",
"choice": "<string>"
},
"note": "<string>"
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
questionId: '<string>',
answer: {type: 'choice', choice: '<string>'},
note: '<string>'
})
};
fetch('https://judged.systems/api/evaluations/{id}/labels', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://judged.systems/api/evaluations/{id}/labels"
payload = {
"questionId": "<string>",
"answer": {
"type": "choice",
"choice": "<string>"
},
"note": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"questionId": "<string>",
"answer": {
"type": "choice",
"choice": "<string>"
},
"note": "<string>"
}{
"error": "<string>",
"issues": [
{}
]
}Labels
Write a label
Requires labels:write. Stores a human answer for one question. Does not change the evaluation.
POST
/
api
/
evaluations
/
{id}
/
labels
Write a label
curl --request POST \
--url https://judged.systems/api/evaluations/{id}/labels \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"questionId": "<string>",
"answer": {
"type": "choice",
"choice": "<string>"
},
"note": "<string>"
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
questionId: '<string>',
answer: {type: 'choice', choice: '<string>'},
note: '<string>'
})
};
fetch('https://judged.systems/api/evaluations/{id}/labels', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://judged.systems/api/evaluations/{id}/labels"
payload = {
"questionId": "<string>",
"answer": {
"type": "choice",
"choice": "<string>"
},
"note": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"questionId": "<string>",
"answer": {
"type": "choice",
"choice": "<string>"
},
"note": "<string>"
}{
"error": "<string>",
"issues": [
{}
]
}Authorizations
apiKeybearerAuth
Path Parameters
Body
application/json