Datasets_ReingestDataset
const url = 'https://dev-api.qualiastudios.dev/v1/accounts/example/datasets/example:reingest';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"name":"example","ingestConfig":"example","mergedSettingsContext":{"mergedDataset":"example","members":["example"],"membershipRevision":"example","etag":"example","sourceCommit":"example"},"requestId":"example","resumeReingest":"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://dev-api.qualiastudios.dev/v1/accounts/example/datasets/example:reingest \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "name": "example", "ingestConfig": "example", "mergedSettingsContext": { "mergedDataset": "example", "members": [ "example" ], "membershipRevision": "example", "etag": "example", "sourceCommit": "example" }, "requestId": "example", "resumeReingest": "example" }'Upload only (MCAP): commits a new meta/ingest.toml and ingests the unchanged recordings again under it, publishing the upload’s next generation (ADR 0012). Returns once the work is admitted; the ingest takes minutes and is read with GetReingest. A config identical to the published one runs nothing and returns that publication, SUCCEEDED, with unchanged set.
A config that declares [episodes] spans re-cuts the recordings at those
windows. Episode ids follow position, so a re-cut renumbers every episode
of the upload: it is FAILED_PRECONDITION, naming the counts, while any
episode holds a person ruling, a person issue or note, a reach result, an
edit or a split child.
FAILED_PRECONDITION on a mixture, a non-MCAP upload, a merged dataset (QUA-3511: re-ingest its uploads before they merge) and an upload merged into one (naming it; its GetReingest and GetIngestReport still answer); INVALID_ARGUMENT when the config does not parse.
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 Datasets.ReingestDataset.
object
Accounts/{account}/datasets/{dataset}
Required unless resume_reingest is set. The complete meta/ingest.toml
(schema = 1). It replaces the published
file: a table the published file declared and this one leaves out is
dropped. Declaring [episodes] spans re-cuts the upload (see
ReingestDataset). With merged_settings_context this is instead a strict
clock/alignment patch: only schema, clock and channels.
Explicitly confirmed MCAP clock/alignment edit of one merged member. Other config tables and episode boundaries must remain unchanged. Older callers without this context retain the existing member re-cut rules.
object
The merged dataset whose membership was confirmed.
Every upload it held, in merge order, including the selected upload.
Opaque merge/undo epoch from GetDataset; never recapture it on retry.
The dataset’s editable etag; a member edit sends the selected upload’s.
The selected upload’s exact paired head. Empty on the merged dataset’s context, which is used only to fence global label edits.
UUID retry key, required with merged_settings_context. A replay retains its original operation and membership scope, never today’s membership.
Resume this exact completed corrective publication. No ingest_config, request_id or merged_settings_context may accompany this operation.
Example generated
{ "name": "example", "ingestConfig": "example", "mergedSettingsContext": { "mergedDataset": "example", "members": [ "example" ], "membershipRevision": "example", "etag": "example", "sourceCommit": "example" }, "requestId": "example", "resumeReingest": "example"}Responses
Section titled “ Responses ”OK
Response for Datasets.ReingestDataset.
object
The re-ingest it admitted (QUEUED), or with unchanged set, the publication that already carries the config (SUCCEEDED).
object
Accounts/{account}/datasets/{dataset}/reingests/{reingest}
Where the work stands.
The posted config was the published one: nothing ran, and this names the publication that already carries it.
Why it failed; empty unless FAILED.
While PREPARING: the live step, the same open set of fields the upload feed reports (step, detail, counters).
object
Once SUCCEEDED: episodes in the published generation.
Once SUCCEEDED: frames in the published generation.
Attempt currently preparing a pose move, or zero when cancellation is unavailable.
Most recent safe publication failure while publishing, if any.
Present only when a verified re-cut result committed atomically with this successful publication. Absence is not an empty/clean result.
object
Exact number of old original takes with state not carried. Zero means the verified publication lost no state; no such take is listed.
Immutable publication commit, used to bind every page of the result.
Example
{ "reingest": { "state": "STATE_UNSPECIFIED" }}default
Section titled “default ”Default error response
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
The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
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.
A list of messages that carry the error details. There is a common set of message types for APIs to use.
Contains an arbitrary serialized message along with a @type that describes the type of the serialized message.
object
The type of the serialized message.
Example generated
{ "code": 1, "message": "example", "details": [ { "@type": "example" } ]}