/move/copy
Start a job to copy accounts while the source keeps serving them
usersallReturns 202 with the job in job. This is the first phase of a move and can be repeated before cutover. Copying a reseller also copies their customers, with the reseller copied first. The job checks that account names and domains are available on the destination and that the required software is installed. If software is missing, the job fails and lists the installation commands in the order to run them.
The job lowers the TTLs of the account's zones on the source to five minutes. It imports account records and secrets, installs the existing certificates, and stages the account as suspended on the destination. Cron jobs and mail handling stay on the source until cutover. The job copies the home directory, including sites and mail, using rsync over SSH. It dumps each database on the source and loads it on the destination. Later copies transfer new and changed files and remove data deleted from the source since the previous copy. A failed copy can affect only zone TTLs on the source.
For zones whose nameservers are hosted elsewhere, the job result lists the DNS records to update manually at cutover.
Set profile to true to import the source server's settings and packages before copying accounts. With profile alone, the job imports the profile without copying accounts. Use GET /move/profile to preview the changes and identify settings marked names_old_server. Omit settings to import all settings, or supply an array of setting keys to import just those settings. An empty array selects zero settings. Packages are imported in full regardless of the setting selection.
The job leaves hooks, overrides, custom includes, and registered files for root to review. The result lists them in profile.left_for_root and provides the rsync command to fetch them into /root/urbestack-review. After reviewing the files, use urbestack-move-copy --profile --trust-files to import them.
Supply a nonempty users array of source account names, set all to true, or set profile to true. Use as to map selected source account names to their destination names. Returns 400 if none of these selections is made, users and all are combined, users is not an array, as is not an object or names an account outside users, or settings is not an array or is supplied without profile.
Requires a token with the users scope. Returns 403 if the caller lacks administrator privileges.
allbooleanasobject of Usernameprofilebooleansettingsarray of string, matching ^[a-z][a-z0-9_]{0,31}(\.[a-z][a-z0-9_]{0,31}){0,3}$usersarray of SourceUsernameExample
See the API overview for how to set $API and $TOKEN.curl -sS -X POST "$API/move/copy" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"all": true,
"as": {},
"profile": true,
"settings": [
"text"
],
"users": [
"text"
]
}'202 Accepted{
"job": {
"created_at": "2026-09-09T10:15:00Z",
"created_by": 1,
"created_by_name": "text",
"dismissed_at": "text",
"finished_at": "2026-09-09T10:15:04Z",
"id": 1,
"lane": "short",
"log": "",
"params": {},
"progress": 100,
"result": {},
"started_at": "2026-09-09T10:15:01Z",
"status": "queued",
"type": "rebuild",
"usual_seconds": 1
}
}Errors
19 errors, each a status and a sentence400A new job is queued or running400Invalid <what>: 400Invalid setting key400Invalid source username: 1 to 32 lowercase letters, digits, underscores or hyphens, starting with a letter400Invalid username: 2 to 32 lowercase letters, digits or underscores, starting with a letter400Job parameters must be an object400Name the accounts in users, or all; or profile alone for the source server's settings and packages400Unknown job type400Username '<value>' is reserved400as goes with users400as is an object: the name on the source server, and the name the account takes here400as names <o>, which is not among users400settings goes with profile400settings is a list of setting keys400users and all exclude each other400users is a list of account names401Authentication required403Insufficient privileges404User '<user>' not foundChange log
2 changes since publication, newest first0.2.3325 Nov 20260.2.3325 Nov 2026MoveCopyRequest→0.1.03 Oct 2026urbestack.com/docs/api/post-move-copy/