post

POST /v2/migration/jobs/{id}/actions/run-live — Promote dry-run to live import

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Promotes a validated dry-run job to a live import. A new job record is created (with dryRun: false) using the same CSV file already uploaded to S3 — no re-upload needed.

Pre-conditions (all must pass)

  • Job status must be VALIDATION_COMPLETE
  • dryRun must be true
  • errorRows must be 0

If any condition fails, the endpoint returns 400 with a descriptive message.

Required role

affiliate_super_admin

Response 200

{
  "success": true,
  "result": {
    "id": "mjob::live456",
    "type": "PATIENTS",
    "status": "PENDING_IMPORT",
    "dryRun": false,
    "createdAt": "2026-05-30T14:05:00.000Z"
  }
}

Errors

StatusDescription
400Job not in VALIDATION_COMPLETE status
400This job is already a live import
400Dry-run found errors — fix CSV and re-upload
404Job not found
409Another request already promoted this job (concurrent calls)
Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here!