hosting

POST /v1/sites/{siteId}/wordpress/installs

Manage a sub-folder WordPress copy here.

All hosting endpoints

All developer docs →

Zinn®, our Viking, hammering at his anvil beside an API endpoint sending events to several listeners.

Authentication

Send an API key as a bearer token. The key must carry the sites.view 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/sites/{siteId}/wordpress/installs \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "path": <string>, "consent": <boolean> }'

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

Adds the panel's management plugin (a must-use plugin) to the WordPress copy in path and records it, so it is listed with the site's WordPress. The copy's files, plugins, themes and database are otherwise left exactly as they are. consent must be true: it writes into a WordPress the platform did not install. Adopting a copy that is already managed refreshes its version and address. 422 when consent is missing, the path is not a folder below the document root, there is no WordPress in that folder, or the platform does not offer this. Requires sites.view and sites.panel_access.

Parameters

NameTypeRequiredWhat it is
siteId (path)UuidYesSite ID (UUIDv7).

Request body

NameTypeRequiredWhat it is
pathstringYesThe folder from the scan, relative to the document root.
consentbooleanYesMust be true: the customer agrees the panel may add its management plugin to that WordPress copy.

Response

NameTypeRequiredWhat it is
idstringYes—
siteIdstringYes—
pathstringYes—
versionstringYesThe WordPress version when it was adopted, or empty.
siteUrlstringYesThe copy's address when it was adopted, or empty.
adoptedAtstringYes—

Errors this endpoint can return

401 · 403 · 404 · 422 · 429 · 503