Skip to content

Datasets_GetPreparation

GET
/v1/accounts/{account}/datasets/{dataset}/preparation
curl --request GET \
--url https://dev-api.qualiastudios.dev/v1/accounts/example/datasets/example/preparation \
--header 'X-API-Key: <X-API-Key>'

What the newest prepare run did to an upload (every upload is prepared after it lands): the Task it matched and applied, or the Task it drafted; the takes it split; the dataset’s own task names and the decisions a person made on them. A dataset with no run (a merged dataset, an upload before preparation existed) answers state NONE.

account
required
string

The account id.

dataset
required
string

The dataset id.

OK

Media type application/json

What the newest prepare run did to an upload. Everything in it is a proposal or a flag: nothing was removed and no Task was published.

object
name

Accounts/{account}/datasets/{dataset}/preparation

string
state

Where the newest run is.

string format: enum
Allowed values: STATE_UNSPECIFIED NONE QUEUED RUNNING SUCCEEDED FAILED SKIPPED
runId

The newest run’s id.

string
version

The dataset version the run read.

string
createTime

When the run was queued.

string format: date-time
updateTime

When the run last changed.

string format: date-time
error

Why the run failed.

string
taskMatch

The matched or drafted Task. Unset for a run that discovery split into tasks: each has its own Task, in discovery.

object
matched

True when a published Task matched; false when the run drafted one.

boolean
task

Tasks/{task}: the matched Task, or the draft.

string
revision

The matched revision; 0 for a draft.

integer format: int32
score

Match score, 0 to 1 (0 for a draft).

number format: double
basis

One line on what the score rests on.

string
candidates

The top candidates, best first (at most 5).

Array<object>

Another Task the match scored.

object
task

Tasks/{task}

string
displayName

The Task’s name.

string
score

Match score, 0 to 1.

number format: double
event

The TASK_ASSIGNED event that applied the match; empty when not applied.

string
assignedCount

How many episodes the match was applied to.

integer format: int32
undone

True once that event was undone.

boolean
revertingEvent

The event that undid it.

string
displayName

The Task’s name.

string
cuts

The takes it split.

object
takes

Only takes split into two or more pieces.

Array<object>

One take the run split into pieces.

object
episode

The as-uploaded (v0) episode.

string
durationS

The take’s duration in seconds.

number format: double
spans

The windows kept as pieces.

Array<object>

A window of a take, in take time.

object
startS

Start, seconds from the take’s start.

number format: double
endS

End, seconds from the take’s start.

number format: double
idle

The idle stretches the cut found.

Array<object>

A window of a take, in take time.

object
startS

Start, seconds from the take’s start.

number format: double
endS

End, seconds from the take’s start.

number format: double
children

The pieces, in span order, in the version the split made.

Array<string>
event

The split event.

string
skippedCount

Takes the run left whole or could not split.

integer format: int32
taskStrings

The dataset’s own task names.

object
state

None, outcome_split, single, too_many, sparse, codes or informative.

string
reason

One line on why.

string
offered

The rule offers the names (informative).

boolean
confirmable

A person may confirm them (informative, sparse).

boolean
candidates

One per distinct name, most episodes first.

Array<object>

One distinct task name.

object
key

Ts_ of the normalised string.

string
text

The string as the dataset gives it.

string
episodeCount

Episodes that carry it.

integer format: int32
looksLikeCode

It looks like a rig or session code.

boolean
blocked

It can never be confirmed (see blocked_reason).

boolean
confirmation

The person’s decision; unset when nobody decided.

object
displayName

The task name the person gave it.

string
confirmed

True: use it as a task. False: a person said no.

boolean
actor

Who decided.

object
kind

What kind of actor it is.

string format: enum
Allowed values: KIND_UNSPECIFIED PERSON VALIDATION RULE MODEL OPERATOR SYSTEM
user

The person’s user id when kind is PERSON; empty otherwise.

string
displayName

The person’s display name at the time, for rendering without a lookup.

string
agent

The rule code, or the model id (e.g. “gemini-robotics-er”), when not a person.

string
run

The run a model or rule finding came from, when it has one.

string
apiKey

The API key’s id when a person acted through one; empty for a session. Never the key itself.

string
attribution

Signed identity evidence recorded with the change, kept apart from the principal above. Unset on older records and wherever none was signed.

object
authentication

How the principal authenticated.

string format: enum
Allowed values: AUTHENTICATION_UNSPECIFIED SESSION API_KEY SERVICE
initiator

The user id of a person verified as starting the work: the person of a session, or the person a trusted service’s signed job record names. Empty when nobody was verified.

string
initiatorDisplayName

The initiator’s display name at the time, never their email.

string
credentialCreator

The user id of the key’s creator at the time. Not who used the key.

string
credentialOwner

Who owned the key at the time.

string format: enum
Allowed values: CREDENTIAL_OWNER_UNSPECIFIED PERSON SPACE
credentialOwnerSpace

The owning space’s id (a workspace or the organization) when credential_owner is SPACE.

string
decideTime

When.

string format: date-time
blockedReason

Why it is blocked: outcome words, a code, already a task label.

string
discovery

The tasks discovery found; unset on runs from before discovery.

object
status

Where discovery is.

string format: enum
Allowed values: STATUS_UNSPECIFIED RUNNING DONE FAILED FALLBACK
tasks

The tasks, by task_key.

Array<object>

One discovered task.

object
taskId

The matched Task or the draft’s id; empty when no draft was made.

string
taskKey

Sha256 of the task’s sorted member take ids.

string
name

The task’s name: its Task’s name when it has one (as the Task’s page shows it), else the name discovery gave it.

string
episodeCount

Takes in the task.

integer format: int32
healthFlag

The task’s health: ok, or the reasons it may hold more than one task, comma-separated (inverse, margin), or flagged without one.

string
referenceEpisodeIds

The picked reference takes’ ids, best first.

Array<string>
unsortedCount

Takes no task holds (their map failed): not linked, not checked.

integer format: int32
reason

Why discovery fell back or failed; empty otherwise.

string
recommendation

Unset when the upload’s task names were not assessed (a fallback).

object
recommended

The names are offered, the discovered tasks disagree with them, and none is confirmed yet.

boolean
warning

The sentence that says how they disagree; empty when they agree.

string
unpublishedAnnotationCount

Takes without a published annotation. Above zero, the run is partial: the other takes’ annotations stand.

integer format: int32
unpublishedAnnotations

The first 100 of those takes, each with why.

Array<object>

A take whose proposed annotation did not publish.

object
episode

Accounts/{account}/datasets/{dataset}/episodes/{episode}

string
reason

Why, as the run recorded it.

string
warnings

What the run flagged without failing, one sentence each: a model that answered in place of the one asked for (“3 reads answered by instead of ”), whose labels may be weaker. A read is a reply whose model was checked, not a label. A SUCCEEDED run whose task discovery failed says so here in one fixed sentence (“Task discovery did not finish, so the takes were prepared as one task for the whole dataset.”), or, for a failed re-run that left earlier tasks standing, “Finding the tasks again did not finish; the tasks found before stand.”; the reason is in discovery.reason. Empty when none.

Array<string>
Example
{
"state": "STATE_UNSPECIFIED",
"taskStrings": {
"candidates": [
{
"confirmation": {
"actor": {
"kind": "KIND_UNSPECIFIED",
"attribution": {
"authentication": "AUTHENTICATION_UNSPECIFIED",
"credentialOwner": "CREDENTIAL_OWNER_UNSPECIFIED"
}
}
}
}
]
},
"discovery": {
"status": "STATUS_UNSPECIFIED"
}
}

Default error response

Media type application/json

The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide.

object
code

The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].

integer format: int32
message

A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.

string
details

A list of messages that carry the error details. There is a common set of message types for APIs to use.

Array<object>

Contains an arbitrary serialized message along with a @type that describes the type of the serialized message.

object
@type

The type of the serialized message.

string
key
additional properties
any
Example generated
{
"code": 1,
"message": "example",
"details": [
{
"@type": "example"
}
]
}