/import
0.1.0Unchanged since publicationQueue a job to import an export and rebuild services
exportSupply the export as a JSON object in data. The API returns 400 if data is missing or lacks a supported schema_version or a profile object. It returns 403 if the profile contains hooks, overrides, Apache includes, or registered files. Import profiles containing those sections at the shell with urbestack-import --trust-files.
The import job applies the export and rebuilds all services. Set profile_only to true to apply only the server profile from a full export. Set dry_run to true to report differences without applying changes.
The API returns 202 with the queued import job in job. Once queued, the job runs independently of the request and can finish after a gateway timeout. Use GET /jobs/{id} to read the report in the completed job's result or the log if the job fails. The API returns 500 if it cannot stage the export for the job.
As a command
Run as root on the serverdataobjectRequireddry_runbooleanprofile_onlybooleanExample
See the API overview for how to set $API and $TOKEN.curl -sS -X POST "$API/import" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"data": {},
"dry_run": true,
"profile_only": true
}'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
15 errors, each a status and a sentence400A new job is queued or running400Export has no profile section400Export has no schema_version400Export is not valid JSON400Invalid <what>: 400Invalid boolean400Invalid username: 2 to 32 lowercase letters, digits or underscores, starting with a letter400Job parameters must be an object400Unknown job type400Unsupported export schema version <data.schema_version>400Username '<value>' is reserved400body is missing required field data401Authentication required403This profile carries 404User '<user>' not foundurbestack.com/docs/api/post-import/