---
title: "Build Agency Plan website NodeJS assets"
method: POST
path: "/api/agency-hosting/v1/websites/{website_uid}/build-assets"
tags: ["Agency Hosting: Websites"]
---

# Build Agency Plan website NodeJS assets

`POST /api/agency-hosting/v1/websites/{website_uid}/build-assets`

Builds and deploys a Node.js application for an Agency Plan website from an already-uploaded archive.

Upload the archive to file browser first, then provide its relative path from document root in this request.
Website contents are overwritten by the build result, which is deployed to public_html.

## Path parameters

- `website_uid` string, required

## Request body

- AgencyHostingV1WebsitesBuildAssetsRequest — Build Node.js assets from an already-uploaded archive
  - `archive_path` string, required — Directory, relative to the website document root, where the uploaded site archive currently lives. Most commonly this is simply `public_html`.

## Response `200`

Success empty response

- CommonSuccessEmptyResource
  - `message` string

## Other responses

- `401` — Unauthenticated response
- `422` — Validation error response
- `500` — Error response

---

[API](https://skmtc.net/hostinger/apis/hostinger-api.md) · [All operations](https://skmtc.net/hostinger/apis/hostinger-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hostinger/hostinger-api/versions/796bd5194565/schema)
