v51

OpenAPI 3.0.0raw.githubusercontent.com2026-08-01267339950.6 KB
Agency Hosting: Files

Import Agency Plan website from archive

Imports an Agency Plan website from an already-uploaded archive.

Upload the archive to the website's root directory via file browser first, then provide its filename in this request. Website contents are overwritten by the archive contents. Supported archive types: .zip, .tar, .tar.gz, .tgz.

post/api/agency-hosting/v1/websites/{website_uid}/files/import-archive

Path parameters

website_uidstring required
Example:zpwlGlp19

Agency Plan website UID

Request body

archive_namestring required

Archive filename (e.g., archive.zip). The file must already be uploaded to the website's .h5g/ directory.

Example request

{
  "archive_name": "archive.zip"
}

Response

Success empty response

messagestring

Example response

{
  "message": "Request accepted"
}