hosting

POST /v1/sites/{siteId}/wordpress/uploads/{uploadId}/complete

Finish a resumable upload; the platform assembles and installs it.

All hosting endpoints

All developer docs →

Authentication

Send an API key as a bearer token. This endpoint does not state a specific permission in the specification, so give your key the least it needs and check the response rather than assuming.

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/uploads/{uploadId}/complete \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "sha256": <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

Every part must have arrived (422 names the missing ones). sha256 is the whole-file checksum in composite form: the SHA-256 of the parts' raw SHA-256 digests concatenated in part order. A client can compute that one part at a time, without hashing the whole file at once. Answers 202 with the upload in assembling. The platform then streams the parts together and verifies the length and checksum. It installs with the same checks as installSiteWordPressPlugin / installSiteWordPressTheme, and the upload becomes installed or failed. Poll getSiteWordPressUpload. 503 if the installer is unreachable; the upload stays resumable and can be completed again.

Parameters

NameTypeRequiredWhat it is
siteId (path)UuidYesSite ID (UUIDv7).
uploadId (path)stringYesA resumable upload's id, from startSiteWordPressUpload.

Request body

NameTypeRequiredWhat it is
sha256stringYes—

Response

NameTypeRequiredWhat it is
idstringYes—
kindstring<plugin, theme>Yes—
statusstring<open, assembling, installed, failed>Yes—
sizeintegerYes—
part_sizeintegerYesBytes per part, chosen by the platform. Every part but the last is exactly this long.
part_countintegerYes—
file_namestringYes—
activatebooleanYes—
messagestringYesOn failed, what went wrong, written for the customer. Empty otherwise.
expires_atstringYes—
created_atstringYes—
finished_atstringYes—
received_partsinteger[]NoPresent while open — the part numbers already stored.

Errors this endpoint can return

401 · 403 · 404 · 409 · 422 · 429 · 503