hosting

POST /v1/sites/{siteId}/storage/move-and-add

Move a site to a server with room and add extra storage there.

All hosting endpoints

All developer docs →

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}/storage/move-and-add \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "pack_code": <string<extra_storage_10gb, extra_storage_50gb, extra_storage_100gb>> }'

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

For a site whose server cannot back the pack it asked for (getSiteStorage offer with refusal_code box_full and move_available true): moves the site to a server in its own pool and region that can, through the platform's site-move path, and buys the pack automatically once the site is live there. Nothing is charged now, and nothing is charged if the move does not complete. Needs a stored payment method or enough balance (422 otherwise), and only one such move per site at a time. Requires sites.view and billing.payment.manage.

Parameters

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

Request body

NameTypeRequiredWhat it is
pack_codestring<extra_storage_10gb, extra_storage_50gb, extra_storage_100gb>Yes—

Response

NameTypeRequiredWhat it is
site_idstringYes—
offeredbooleanYesWhether extra storage is on sale to this organisation.
diskSiteStorageUsageYesOne resource of a site (disk in MB, or files), in stored units. limit is base + packs (plus any staff grant); -1 is unlimited and null is not provisioned.
inodesSiteStorageUsageYesOne resource of a site (disk in MB, or files), in stored units. limit is base + packs (plus any staff grant); -1 is unlimited and null is not provisioned.
packsSiteStoragePack[]Yes—
offersSiteStorageOffer[]Yes—
lapseobjectYesSet while a pack that ended is still in use: the site keeps its space until deadline, after which only new growth stops. Files are never deleted.
moveobjectYesThe latest "move and add" request for this site.

Errors this endpoint can return

400 · 401 · 403 · 404 · 422 · 429 · 503