Episodes_RelabelSubtasks
const url = 'https://api.qualia.dev/v1/accounts/example/datasets/example/episodes:relabelSubtasks';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"parent":"example","selection":{"names":{"names":["example"]},"filter":"example"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.qualia.dev/v1/accounts/example/datasets/example/episodes:relabelSubtasks \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "parent": "example", "selection": { "names": { "names": [ "example" ] }, "filter": "example" } }'Queues the subtask labelling of an upload again on the selected episodes: each is annotated in its linked Task’s names and its model proposals are replaced. It runs later, as preparation does, and only on the episodes still as preparation left them; the rest are counted as skipped, never refused. A person’s edit made before the run finishes wins. At most 200 episodes per call. FAILED_PRECONDITION through a merged dataset or a mixture and where preparation is off; also when it would queue while a preparation of the upload is queued or running (with none eligible it answers the counts).
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”The account id.
The dataset id.
Request Body required
Section titled “Request Body required ”Request for Episodes.RelabelSubtasks.
object
Accounts/{account}/datasets/{dataset}: must be the upload.
Which episodes, at most 200.
object
Episode names under the request’s parent.
object
Accounts/{account}/datasets/{dataset}/episodes/{episode}, at most 10000.
A ListEpisodes filter over the parent (e.g. what the filter bar leaves).
Example generated
{ "parent": "example", "selection": { "names": { "names": [ "example" ] }, "filter": "example" }}Responses
Section titled “ Responses ”OK
Response for Episodes.RelabelSubtasks. The three counts add up to the selected episodes.
object
Episodes queued for the relabel; zero queues nothing.
Skipped: no linked Task, or a Task that names no actions.
Skipped: anyone but a model changed their subtasks, has an unapplied draft of them, or holds their edit lease; and cut pieces, which are frozen. A take drawn or leased after the request is left as well, when the run publishes.
Example generated
{ "episodeCount": 1, "untaskedCount": 1, "editedCount": 1}default
Section titled “default ”Default error response
A refusal from the API itself.
object
The gRPC code name in upper case, e.g. NOT_FOUND.
Whether the same call may succeed if retried.
Empty, except when a dataset copy or move is refused: then one google.rpc.ErrorInfo with the refusal’s reason code, its domain and, in metadata, the datasets it names.
object
A refusal from the gateway before the call reaches the API, for example 401 bad or missing API key, 403 key lacks the scope or environment closed, 413 body too large.
object
What went wrong.
Example generated
{ "code": "example", "message": "example", "retryable": true, "details": [ {} ]}