Skip to content

Episodes_RelabelSubtasks

POST
/v1/accounts/{account}/datasets/{dataset}/episodes:relabelSubtasks
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).

account
required
string

The account id.

dataset
required
string

The dataset id.

Media type application/json

Request for Episodes.RelabelSubtasks.

object
parent
required

Accounts/{account}/datasets/{dataset}: must be the upload.

string
selection
required

Which episodes, at most 200.

object
names

Episode names under the request’s parent.

object
names

Accounts/{account}/datasets/{dataset}/episodes/{episode}, at most 10000.

Array<string>
filter

A ListEpisodes filter over the parent (e.g. what the filter bar leaves).

string
Example generated
{
"parent": "example",
"selection": {
"names": {
"names": [
"example"
]
},
"filter": "example"
}
}

OK

Media type application/json

Response for Episodes.RelabelSubtasks. The three counts add up to the selected episodes.

object
episodeCount

Episodes queued for the relabel; zero queues nothing.

integer format: int32
untaskedCount

Skipped: no linked Task, or a Task that names no actions.

integer format: int32
editedCount

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.

integer format: int32
Example generated
{
"episodeCount": 1,
"untaskedCount": 1,
"editedCount": 1
}

Default error response

Media type application/json
One of:
API error

A refusal from the API itself.

object
code
required

The gRPC code name in upper case, e.g. NOT_FOUND.

string
message
required
string
retryable
required

Whether the same call may succeed if retried.

boolean
details
required

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.

Array<object>
object
Example generated
{
"code": "example",
"message": "example",
"retryable": true,
"details": [
{}
]
}