Labeling
Discard labeling job
Set labels ready to review aside without making a dataset. They can still be finalized.
POST
/
v1
/
labeling
/
jobs
/
{job_id}
/
discard
Discard labeling job
curl --request POST \
--url https://console.sqwish.ai/v1/labeling/jobs/{job_id}/discard \
--header 'Authorization: Bearer <token>'import requests
url = "https://console.sqwish.ai/v1/labeling/jobs/{job_id}/discard"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://console.sqwish.ai/v1/labeling/jobs/{job_id}/discard', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"name": "<string>",
"source_id": "<string>",
"status": "queued",
"teacher_models": [
"<string>"
],
"rows": 123,
"completed_rows": 123,
"valid_rows": 123,
"agreement_rows": 123,
"error_rows": 123,
"created_at": 123,
"updated_at": 123,
"price_usd": "<string>",
"charge": "free",
"dataset_id": "<string>",
"error": "<string>",
"erased": true
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": [
{
"path": [
"<string>"
],
"message": "<string>",
"type": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": [
{
"path": [
"<string>"
],
"message": "<string>",
"type": "<string>"
}
]
}
}Authorizations
Create an API key in the console. Required when accounts are enabled.
Path Parameters
Response
Successful Response
Available options:
queued, running, cancelling, cancelled, review_ready, failed, finalized, discarded, erased The job's fee, as exact USD: each of its teachers' price for a row, for every row.
What the fee is doing: held while the job runs, charged once its labels are ready for review, released if it fails or is cancelled first.
Available options:
free, reserved, charged, released True once its source was erased: the job and its counts stay, but its queries and the teachers' answers are gone, so its results answer 410 erased.
Discard labeling job
curl --request POST \
--url https://console.sqwish.ai/v1/labeling/jobs/{job_id}/discard \
--header 'Authorization: Bearer <token>'import requests
url = "https://console.sqwish.ai/v1/labeling/jobs/{job_id}/discard"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://console.sqwish.ai/v1/labeling/jobs/{job_id}/discard', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"name": "<string>",
"source_id": "<string>",
"status": "queued",
"teacher_models": [
"<string>"
],
"rows": 123,
"completed_rows": 123,
"valid_rows": 123,
"agreement_rows": 123,
"error_rows": 123,
"created_at": 123,
"updated_at": 123,
"price_usd": "<string>",
"charge": "free",
"dataset_id": "<string>",
"error": "<string>",
"erased": true
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": [
{
"path": [
"<string>"
],
"message": "<string>",
"type": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": [
{
"path": [
"<string>"
],
"message": "<string>",
"type": "<string>"
}
]
}
}