For the complete documentation index, see llms.txt. This page is also available as Markdown.

Import website from archive

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

Import website from archive

post

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.

Authorizations
AuthorizationstringRequired

API Token authentication

Path parameters
website_uidstringRequired

Agency Plan website UID

Example: zpwlGlp19
Body

Import a website from an already-uploaded archive

archive_namestringRequired

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

Example: archive.zip
Responses
200

Success empty response

application/json
messagestringOptionalExample: Request accepted
post/api/agency-hosting/v1/websites/{website_uid}/files/import-archive
POST /api/agency-hosting/v1/websites/{website_uid}/files/import-archive HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 30

{
  "archive_name": "archive.zip"
}
{
  "message": "Request accepted"
}

Last updated

Was this helpful?