Skip to main content
PATCH
/
v1
/
ingestion
/
jobs
/
{job_id}
import olira

olira.init(api_key="YOUR_API_KEY")
job = olira.patch_ingestion_job(
    job_id="ing-job-001",
    summary_types=["symptom_snapshot", "emotional_state_snapshot"],
)
IngestionJob(
    job_id="ing-job-001",
    status="awaiting_confirmation",
    summary_types=["symptom_snapshot", "emotional_state_snapshot"],
)
olira.patch_ingestion_job(
    job_id: str,
    summary_types: list[str] | None = None,
) -> IngestionJob
Requires scope: sdk:historical-ingest Use summary_types to choose which views are backfilled before confirming.

Parameters

job_id
str
required
Job id in awaiting_confirmation.
summary_types
list[str] | None
summary_type identifiers from your org’s active view templates.

Returns

IngestionJob
job_id
str
Job id.
summary_types
list[str] | None
Updated backfill selection.

Raises

ExceptionWhen
AuthErrorHTTP 401 or 403 — invalid API key or insufficient OAuth scope for this endpoint.
ValidationErrorHTTP 400, 404, or 422 — malformed JSON, unknown patient, or validation failure (message includes response excerpt).
ServerErrorHTTP 409 (e.g. conflicting external identifier) or repeated 5xx after retries; includes status_code when applicable.
RateLimitErrorHTTP 429 — rate limited; check retry_after (seconds).
NetworkErrorConnection timeout, DNS failure, or read error after retries.
import olira

olira.init(api_key="YOUR_API_KEY")
job = olira.patch_ingestion_job(
    job_id="ing-job-001",
    summary_types=["symptom_snapshot", "emotional_state_snapshot"],
)
IngestionJob(
    job_id="ing-job-001",
    status="awaiting_confirmation",
    summary_types=["symptom_snapshot", "emotional_state_snapshot"],
)