hosting

POST /v1/migrations/ai-moves/{moveId}/schedule

Book, move or clear the minute an AI Move switches over.

All hosting endpoints

All developer docs →

Zinn®, our Viking, hammering at his anvil beside an API endpoint sending events to several listeners.

Authentication

Send an API key as a bearer token. The key must carry the hosting.import.manage permission; a key without it is refused with 403, not 404.

This endpoint takes no organisation id. Your key already identifies the organisation it belongs to, and the response is scoped to it.

Try it

Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.

curl -X POST https://api.zinndigital.com/v1/migrations/ai-moves/{moveId}/schedule \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "at": <object> }'

Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console

Details

The booked minute stands in for the GO and nothing else: the copy must still pass its preview and app checks, the latest changes are copied just before the switch, and any check that fails at that minute holds the switch and tells the customer on the move's ticket. A reminder is posted on the ticket 24 hours before. at must be at least 15 minutes and at most 30 days ahead (else 422); null clears the booking. A booked minute that has passed by more than an hour when the copy becomes ready is cleared (never a switch at a minute nobody chose). Refused with 409 (refusal.aiMove.scheduleClosed) once a GO was given or the switch-over started. Requires hosting.import.manage.

Parameters

NameTypeRequiredWhat it is
moveId (path)stringYes—

Request body

NameTypeRequiredWhat it is
atobjectYesThe switch-over minute, with its UTC offset; null clears it.

Response

NameTypeRequiredWhat it is
idstringYes—
org_idstringYes—
site_idobjectNo—
target_domainstringYes—
product_linestringNo—
stagestring<received, checking_access, needs_access, checking_fit, needs_upgrade, ready_to_copy, copying, verifying, awaiting_cutover, done, needs_staff, cancelled>Yes—
pausedbooleanYes—
taken_overbooleanYesA person from our migration team has taken it over.
platformstringYes—
source_urlsstring[]Yes—
access_kindsstring[]Yes—
access_reportobjectNoPer access kind, ok or the refusal code of the last check.
routestringNoThe route chosen (ssh, cpanel, plesk, directadmin, ftp).
inventoryobjectNo—
fitobjectNoThe plan-fit verdict and any upgrade offered (engine-quoted).
approx_sizestringNo—
move_itemsstring[]No—
cutover_windowstringNo—
timezonestringNo—
ticket_idobjectNo—
migration_job_idobjectNoThe site migration this move started (copying onwards); its rollback state is on GET /v1/sites/{site_id}/migrations.
checksobjectNoThe switch-over verdict: preview, app, passed (both), then live after the switch-over.
go_atobjectNoWhen the GO was given.
cutover_scheduled_atobjectNoThe minute the customer booked for the switch-over (P4-051); it becomes the GO when it arrives, if the copy has passed its checks.
needsstring<, access, mailboxes, replace, replace_existing, address_in_use>NoWhat a waiting move is asking the customer for. replace_existing: the domain is already on another site of this organisation (existing_site) — confirm with replace_site_id…
existing_siteobjectNoWhen needs is replace_existing: the site in this organisation that already holds the domain.
preview_urlstringNoThe preview address, while waiting to switch over.
extra_purchase_idobjectNo—
started_by_staffbooleanNo—
created_atobjectYes—
updated_atobjectNo—
completed_atobjectNo—
progressAiMoveProgressYesWhere the move has got (owner row 1105#11). step of steps on the customer's path (a waiting stage sits on the step it waits in); phase of the copy; files, databases,…
healthAiMoveHealthNoThe honest state beside the stage (owner row 1107#24). on_track: inside the time the stage normally takes. slow: past it, still working. self_healing: our AI hit a problem…
restarted_asobjectNoWhen the customer restarted this move: the fresh move that replaced it.
can_restartbooleanNoWhether POST .../restart would start a fresh move now.

Errors this endpoint can return

401 · 404 · 409 · 422