hosting

PUT /v1/sites/{siteId}/php-config

Set a site's PHP settings.

Svi hosting krajnji točke

Sva developerska dokumentacija

Autentifikacija

Pošaljite API ključ kao nosivi token. Ključ mora imati dozvolu sites.view; ključ bez nje se odbija s kodom 403, a ne 404.

Ova krajnja točka ne prihvaća ID organizacije. Vaš ključ već identificira organizaciju kojoj pripada, a odgovor je ograničen na nju.

Isprobajte

Zamijenite sve unutar šiljastih zagrada svojim vlastitim vrijednostima, a rezervirano mjesto za ključ s ključem iz vaše nadzorne ploče.

curl -X PUT https://api.zinndigital.com/v1/sites/{siteId}/php-config \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "values": <object> }'

Prijavljeni ste? API konzola na vašoj nadzornoj ploči automatski unosi stvarni ID vaše organizacije i vaš vlastiti ključ te šalje zahtjev prema aktivnom API-ju kako biste mogli vidjeti stvarni odgovor. Otvori ovu krajnju točku u API konzoli

Pojedinosti

Applies the complete set of overrides. An omitted name is cleared, and {} resets every setting to the machine's defaults — deliberately not a PATCH, because "return this to the platform default" and "pin it to the value that default happens to have today" are different intentions and only a whole-set write can express the first. Values are validated against the machine's own published range before the vendor sees them, so a bad value is refused in our words rather than failing later as an unexplained vendor error. The write is then read back off the machine and a value it quietly declined is a failure here, never a success the customer discovers is untrue. 409 when the site has no machine to hold the setting. Requires sites.view + sites.panel_access.

Parametri

NazivVrstaObaveznoŠto je to
siteId (path)UuidDaSite ID (UUIDv7).

Tijelo zahtjeva

NazivVrstaObaveznoŠto je to
valuesobjectDa

Odgovor

NazivVrstaObaveznoŠto je to
supportedbooleanDaWhether this site's hosting publishes changeable PHP settings.
reasonstringDaWhy there are none, in words a customer can act on. Empty when supported is true.
optionsSitePhpOption[]Da
moved_to_plan_settingsstring[]NeDirectives the vendor publishes but whose legal range is OUR policy, so they are returned by getSitePhpSettings (with the plan's cap) instead of here. Named rather than silently…

Pogreške koje ova krajnja točka može vratiti

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