Agency Hosting: Files
Import website from archive
Changed onImports 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
Request
- Base URL: https://developers.hostinger.com
- URL: https://developers.hostinger.com/api/agency-hosting/v1/websites/{website_uid}/files/import-archive
- Auth: HTTP bearer
Path parameters
website_uidstring required
Example:zpwlGlp19
Agency Plan website UID
Request body
Example request
{
"archive_name": "archive.zip"
}Response
Success empty response
Example response
{
"message": "Request accepted"
}Changes
- info
api operation id
agency-hosting_importAgencyPlanWebsiteFromArchiveV1removed and replaced withagency-hosting_importWebsiteFromArchiveV1
- info
- info
endpoint added
- info