Rename Dataset
const url = 'https://example.com/v1/datasets/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://example.com/v1/datasets/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”object
Example generated
{ "name": "example"}Responses
Section titled “Responses”Successful Response
object
Of its file; answers are kept beside it.
Tasks with answers from a model, or labels.
Runs queued or going.
Answers those runs have asked so far.
Answers those runs ask for, in all.
When something last happened on it: added, a run started, went or ended (failed too), labels set or cleared, or brought back from Settled.
Listed apart as left alone: settled by an admin until something happens on it, or by itself after 24 hours of nothing (auto_settle). Never while a run goes.
Every column of data: __row_id, the answer columns, newest first, then the file’s own.
object
What its answer columns are, newest first.
Answers to one task from one model, or labels people set for one task.
object
The task’s column, e.g. fallacy.
The question its answers are to.
object
The prompt, e.g. “Is this review negative? {{review}}”.
Base name of the result columns. Defaults to one for the type.
Extraction editor: one scalar value or named, typed fields.
The choices for pick one and pick any; the levels, lowest first, for scale.
object
For extract: what to pull out. "amount:number" is short for {"name": "amount", "type": "number"}.
object
What to put in it, if the name doesn’t say.
Also write why, from LLMs, for classify and extract.
Decision models or LLMs; see GET /v1/models. Defaults to one for the type.
Its columns in data, e.g. fallacy__jev-1.14 and fallacy__jev-1.14_proba.
Rows with an answer.
USD runs spent on it; cached answers are free.
Example
{ "last_run_status": "queued", "answers": [ { "task": { "template": "", "type": "yes_no", "preset": "summarize", "column": "answer", "extraction_mode": "single", "options": [], "fields": [], "reason": false, "models": [ "typesafe/jev-1.14" ] } } ]}Validation Error
object
object
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}