Internal
Record or update a writer run (#5034)
Changed onIdempotent on job_run_id; a second call updates the run. Its writer must write a current key and never changes, and is never app-compute, the in-app job (wrong_writer). A running run has no finished_at; a finished one has one. The writer's Google-signed ID token only.
post/internal/company-metrics/runs
Request
- Base URLhttps://api.medianfi.com/api/v1
- AuthHTTP bearer
Request body
Company Metric Run required
job_run_id, string required
writer, string required
started_at, string date-time required
finished_at, string date-time nullable required
status, 'running' | 'ok' | 'partial' | 'error' | 'not_wired' required
rows_written, integer required
errors, object[] required
References only, never row content. {code, message, key?, module?}; a not_wired code with key marks that key not wired.
Example request
{
"job_run_id": "ops-mrr-2026-11-20T04:00:00-05:00"
}Response
Recorded
object required
success, true required
data, object required
Changes
- info
endpoint added
- info