compute

PUT /v1/compute/servers/{serverId}/traffic-packs/auto-top-up

Switch auto top-up from Zinn® credit on or off for a server.

All compute 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 billing.payment.manage 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 PUT https://api.zinndigital.com/v1/compute/servers/{serverId}/traffic-packs/auto-top-up \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "enabled": <boolean>, "tb": <integer>, "max_packs_per_period": <integer> }'

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

section 4 (owner Q6). Opt-in and off by default. When on, tb TB are bought from Zinn® credit ONLY (never a card, never off-session) when the server is forecast to run out within 24 hours, at most max_packs_per_period times a month; a balance that does not cover it buys nothing. Requires billing.payment.manage.

Parameters

NameTypeRequiredWhat it is
serverId (path)UuidYesThe 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

NameTypeRequiredWhat it is
enabledbooleanYes—
tbintegerYes—
max_packs_per_periodintegerYes—

Response

NameTypeRequiredWhat it is
enabledbooleanYes—
tbintegerYes—
max_packs_per_periodintegerYes—

Errors this endpoint can return

401 · 403 · 404 · 422 · 429