Skip to content

MngApplyMigration

Enqueues a previously reviewed ready migration job. It applies the exact validated snapshot stored for that job ID.

Access

SuperAdmin manager session or SuperAdmin manager API token.

Request fields

Field Type Required Description
migration_id string Yes ID returned by MngPreviewMigration.
{"command":"MngApplyMigration","extID":"mig-apply-1","__token":"<superadmin-token>","data":{"migration_id":"e2f6b1a8-3749-4dd7-b204-97dcdb8203a1"}}

Accepted response

The server returns TCP status 202 once the job is queued in RAM for background processing. The worker persists the queued state before it begins mutation; this response does not mean that persistence or row processing has completed.

{"extID":"mig-apply-1","status":202,"data":{"accepted":true,"migration_id":"e2f6b1a8-3749-4dd7-b204-97dcdb8203a1","status":"queued"}}

Poll MngGetMigration for progress and final results. An explicit retry of the same job ID is supported only after failed or interrupted; do not create a second preview merely because the client lost the apply response. First inspect the existing job. Replays for an already accepted/completed job do not apply the batch a second time.