compute

POST /v1/compute/servers/{serverId}/packages

Put a website on a server.

Sve compute krajnje tačke

Autentifikacija

Pošaljite API ključ kao bearer token. Ova krajnja tačka ne navodi specifičnu dozvolu u specifikaciji, zato dodelite svom ključu minimum potrebnih ovlašćenja i proverite odgovor umesto da pretpostavljate.

Ovaj krajnji tačka ne prihvata ID organizacije. Vaš ključ već identifikuje organizaciju kojoj pripada, a odgovor je ograničen na nju.

Isprobajte

Zamenite bilo šta u uglastim zagradama sopstvenim vrednostima, a ključni placeholder sa ključem sa vaše kontrolne table.

curl -X POST https://api.zinndigital.com/v1/compute/servers/{serverId}/packages \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "domain": <string>, "package_type": <string> }'

Prijavljeni ste? API konzola na vašoj kontrolnoj tabli automatski popunjava ID vaše stvarne organizacije i vaš sopstveni ključ, i izvršava zahtev nad API-jem uživo tako da možete videti stvarni odgovor. Otvorite ovu krajnju tačku u API konzoli

Detalji

Creates a hosting package on the machine. **This does not charge.** The machine's package allowance at the provider is unlimited and the money was spent when the server was bought, so this is gated on `sites.create` and deliberately not on the billing key. A separate, reseller-wide call buys a standalone hosting product; this is not it. A domain the provider rejects - not a valid name, or already hosted on the account - returns 422 and creates nothing.

Parametri

NazivVrstaObaveznoŠta je ovo
serverId (path)UuidDaThe 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.

Telo zahteva

NazivVrstaObaveznoŠta je ovo
domainstringDaThe website's primary domain.
package_typestringDaThe id of a package type from `GET /v1/compute/servers/{serverId}/packages`.

Odgovor

NazivVrstaObaveznoŠta je ovo
idstringDaThe provider's package identifier.
domainstringDaThe package's primary domain
type_labelstringDaThe provider's label for the kind of package, or `""`.
created_atstringDaISO-8601 as the provider states it
site_idstringDa**Our** site id for this website, or `""` when we hold no record of it. This is what makes the website openable: every site surface - SSL, FTP, databases, subdomains, PHP, cron,…

Greške koje ovaj krajnji tačka može da vrati

401 · 403 · 404 · 422 · 429 · 503