# ForeignImportRequest

First published 3 Oct 2026 (release 0.1.0) · Unchanged since publication

UrbeStack release 0.2.35 named type of the API.

## Fields

- `file` (string, up to 4096 characters, required): Path to the archive. Administrators use an absolute path on the server. Resellers specify the path from the root of their home directory, for example /uploads/cpmove-ana.tar.gz.
- `as` (Username): Username to assign to the imported account. Defaults to the username in the archive.
- `default_mailbox` (string, matching ^[a-z0-9]([a-z0-9._-]{0,62}[a-z0-9])?$): Local part under the main domain for the source account's default mailbox, found at the top of mail/. Defaults to the account's username. If the email address is already in use, the mailbox stays in the home directory and the import report identifies it.
- `paths` (string, one of rewrite, leave): The value rewrite replaces the old home directory path with the new one in .htaccess, .user.ini and php.ini files. The value leave preserves the home directory contents and lists files that reference the old path. Any affected password-protected directory still references a missing password file.
- `skip_databases` (array of string, matching ^[A-Za-z0-9_]{1,64}$): Names of databases to omit from the import, for example to resolve a name conflict on this server. For each omitted database, UrbeStack skips its dump and any database user assigned solely to it. The import check, job log and job result record the omissions.

## Used by

- [POST /foreign/import](https://urbestack.com/docs/api/post-foreign-import.md): Queue the import of a hosting account archive
- [POST /foreign/inspect](https://urbestack.com/docs/api/post-foreign-inspect.md): Preview the import of a hosting account archive
