Episodes_UnsplitEpisodes
const url = 'https://api.qualia.dev/v1/accounts/example/datasets/example/episodes:unsplit';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"parent":"example","episodes":["example"],"preparation":true,"validateOnly":true,"requestId":"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:unsplit \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "parent": "example", "episodes": [ "example" ], "preparation": true, "validateOnly": true, "requestId": "example" }'Restores takes that preparation split and published: the upload gets one new version that holds each take whole and none of its pieces. The versions that hold a piece keep it. A take whose pieces someone edited is left, with its reason, and the others go on. Each restored take’s cut becomes an open SplitProposal again. Splits a person published are never restored.
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.UnsplitEpisodes.
object
Accounts/{account}/datasets/{dataset}: must be the upload.
The takes to restore. Not with preparation.
Restore every take whose split preparation published and head still
holds. A take restored already is not listed. Not with episodes.
Report what would be restored and left, without publishing.
Optional UUID identifying this logical edit. Reusing it with the same caller and request returns the original result; different input conflicts. When absent, each call starts a new logical edit.
Example generated
{ "parent": "example", "episodes": [ "example" ], "preparation": true, "validateOnly": true, "requestId": "example"}Responses
Section titled “ Responses ”OK
Response for Episodes.UnsplitEpisodes.
object
The takes restored, or with validate_only, the ones that would be.
One take restored.
object
Accounts/{account}/datasets/{dataset}/episodes/{episode}: the take, whole on head again.
Its pieces, now off head. The versions that hold them keep them.
The split as an open proposal again: one Accept draws it back. Unset for a split of one piece: a proposal keeps two windows or more.
object
Accounts/{account}/datasets/{dataset}/episodes/{episode}: the take.
The run that proposed it: a preparation run (Preparation.run_id) or a check run.
The windows kept, one or more, in time order, in seconds from the take’s start. Two or more are pieces; one is a trim. What lies between them, before the first and after the last is dropped.
The trim window, in seconds from the start of the recording.
object
First second kept.
Last second kept.
Where it stands.
Who made the last decision: a person, or an API key acting for none. A
person’s own API key decides as that person, with the key in api_key.
Unset while PROPOSED, and for APPLIED.
object
What kind of actor it is.
The person’s user id when kind is PERSON; empty otherwise.
The person’s display name at the time, for rendering without a lookup.
The rule code, or for a MODEL the Qualia model tier (e.g. “qualia-vlm”; “qualia” for any other model), when not a person.
The run a model or rule finding came from, when it has one.
The API key’s id when a person acted through one; empty for a session. Never the key itself.
Signed identity evidence recorded with the change, kept apart from the principal above. Unset on older records and wherever none was signed.
object
How the principal authenticated.
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.
The initiator’s display name at the time, never their email.
The user id of the key’s creator at the time. Not who used the key.
Who owned the key at the time.
The owning space’s id (a workspace or the organization) when
credential_owner is SPACE.
When.
For APPLIED: empty when UnsplitEpisodes can restore the take, else why it cannot (“piece 18.2: relabelled by Fabian”). Empty in every other state.
Each cut between two windows, in time order: one fewer than windows,
so none for a trim.
Why preparation would cut the take at one place: the model’s answer when it checked the frames there.
object
Where the window after the cut starts, in seconds from the take’s start.
How sure the model was.
The model’s reason, in its own words (“the person resets the cloth and starts folding again”). Empty when not recorded.
Why the first window starts after the take does (a trimmed start), in its proposer’s words (“Tracking lost 0.00-0.50 s (0.50 s)”). Empty when nothing before it is dropped, or the proposer said nothing.
Why the last window ends before the take does (a trimmed end), in its proposer’s words. Empty when nothing after it is dropped, or the proposer said nothing.
The checks whose part the proposal carries, by check id (“heuristic.nan”), whichever run wrote it; none for preparation’s own cut. An issue of the free NaN check opens a proposal that carries “heuristic.nan”.
What else happened to the take, in one sentence; empty when nothing did. When a piece had a Task link the take does not get, it says why: “restored without a Task link: its pieces were linked to different tasks”, ”…: only some of its pieces were linked to a task”, or ”…: not every piece was linked to its task by the model”.
The takes left as they were, each with why.
A take a call left as it was, and why. The call goes on with the others.
object
Accounts/{account}/datasets/{dataset}/episodes/{episode}
Why, in one sentence (“the take has a saved drawing; open it in the studio”).
Accounts/{account}/datasets/{dataset}/versions/{version}: the upload’s new head version, which holds the restored takes. Empty with validate_only, and when nothing was restored.
Example
{ "restored": [ { "proposal": { "state": "STATE_UNSPECIFIED", "decidedBy": { "kind": "KIND_UNSPECIFIED", "attribution": { "authentication": "AUTHENTICATION_UNSPECIFIED", "credentialOwner": "CREDENTIAL_OWNER_UNSPECIFIED" } }, "cuts": [ { "confidence": "CONFIDENCE_UNSPECIFIED" } ] } } ]}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": [ {} ]}