Import data to Data DB (replaces existing data)
POST/api/infra/import-data
Import data to Data DB (replaces existing data)
Request
Responses
- 200
- 400
- 409
Data imported successfully
Body rejected before the restore ran: tables absent or not an object, a table whose value is not an array of rows, a row that is not an object (null, a bare string, a nested array), a flag spelled as anything but a boolean or exact true/false, or a property this route does not accept. Nothing was written. Field-level detail is suppressed in production unless VALIDATION_ERROR_DETAIL=true.
Refused, with the reason in code. IMPORT_ALREADY_RUNNING: another import is running — wait for it. IMPORT_NESTED_TRANSACTION: another database transaction holds this connection, so a restore could not be made durable — retry with nothing else in flight. IMPORT_WOULD_ORPHAN_ENGINES: live engines exist for sessions the backup would remove — retry with stopOrphans=true to stop them in-request, or force=true to proceed and restart after. Only the last of these is retryable with stopOrphans; the others leave nothing to decide