compute
POST /v1/compute/servers/{serverId}/sites
Deploy a new site onto one of your servers.
Authentication
Send an API key as a bearer token. The key must carry the sites.create permission; a key without it is refused with 403, not 404.
This endpoint takes no organisation id. Your key already identifies the organisation it belongs to, and the response is scoped to it.
Try it
Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.
curl -X POST https://api.zinndigital.com/v1/compute/servers/{serverId}/sites \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ "primary_domain": <string>, "application": <string> }'Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console
Details
Creates a site pinned to this server after the same live capacity check the list answers. Refusals are 422 with a machine code in details[0].code (the list's refusal codes plus bad_application, bad_php_version, bad_product_line, domain_refused, domain_taken, app_needs_runtime, app_needs_magento_pool, app_needs_more_memory, licence_key_required, licence_key_invalid, licence_key_not_taken, licence_store_unavailable, licence_source_invalid, licence_from_us_and_own_key, licence_from_us_unavailable, licence_from_us_sold_out) and, where one input is at fault, details[0].field. product_line (P3-016) builds the site as mainstream (the default) or footprint_free: a Footprint-Free site keeps its line's CDN rotation (or the account's own connected CDN), IP-hiding DNS and origin lock on this server. The deploy is audit-logged as compute.server.site_deployed. Requires sites.create; 404 for a server that is not the caller's.
Parameters
| Name | Type | Required | What it is |
|---|---|---|---|
serverId (path) | Uuid | Yes | The server's id, as listComputeServers reports it. Ours (UUIDv7), minted when the order row was written — never the provider's own identifier for the machine. |
Request body
| Name | Type | Required | What it is |
|---|---|---|---|
primary_domain | string | Yes | — |
application | string | Yes | — |
php_version | string | No | — |
product_line | string | No | P3-016. One of the list's product_lines; blank or absent is mainstream. Any other value is refused bad_product_line. |
application_licence_key | string | No | CP-APPS r2. The customer's own licence key for an application whose choice carries needs_licence_key (WHMCS), with application_licence_source: own. Kept in Vault only, never… |
application_licence_source | string<zinn, own> | No | CP-APPS r3 (owner order A326). Where a licensed application's key comes from: zinn (the default when absent: a key from our WHMCS reseller pool, billed monthly from the first… |
Response
| Name | Type | Required | What it is |
|---|---|---|---|
id | string | Yes | — |
primary_domain | string | Yes | — |
name | string | Yes | — |
status | string | Yes | — |
stack_type | string | Yes | — |
product_line | string | Yes | The product line the site is built as (mainstream, footprint_free, …). |
php_version | object | Yes | — |
created_at | object | Yes | — |
can_move_back | boolean | Yes | Inside the hold of its move onto this server; rollbackSiteOwnVps moves it back. |
Errors this endpoint can return
401 · 403 · 404 · 422