hosting
PUT /v1/sites/{siteId}/wordpress/settings
Set one WordPress option on a site.
Authenticatie
Stuur een API-sleutel mee als bearer token. De sleutel moet over de permissie sites.view beschikken; een sleutel zonder deze permissie wordt geweigerd met een 403 in plaats van een 404.
Dit eindpunt vereist geen organisatie-id. Uw sleutel identificeert al de organisatie waartoe deze behoort, en het antwoord is hierop afgestemd.
Probeer het
Vervang alles tussen punthaakjes door uw eigen waarden en de sleutelplaatsvervanger door een sleutel uit uw dashboard.
curl -X PUT https://api.zinndigital.com/v1/sites/{siteId}/wordpress/settings \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ "option": <string>, "value": <string> }'Ingelogd? De API-console in je dashboard vult je echte organisatie-id en je eigen sleutel in, en voert het verzoek uit tegen de live API zodat je de daadwerkelijke respons kunt zien. Open dit eindpunt in de API-console
Details
Writes a single option and returns the whole option map. The option is named in the **body** rather than the path: unlike a plugin slug it is not a resource, and this platform writes one option per call, so one write endpoint is the honest shape. ⛔ An option the vendor does not publish is refused `422` rather than written blindly — writing an unknown key into a live WordPress is how a site gets a setting nothing can read back and nothing can undo. `404` for a site with no vendor hosting package. Requires `sites.view` and `sites.panel_access`.
Parameters
| Naam | Type | Verplicht | Wat dit is |
|---|---|---|---|
siteId (path) | Uuid | Ja | Site ID (UUIDv7). |
Aanvraaglichaam
| Naam | Type | Verplicht | Wat dit is |
|---|---|---|---|
option | string | Ja | The option name, as `getSiteWordPressSettings` reports it. An option the vendor does not publish is refused. |
value | string | Ja | The new value. May be empty — clearing a tagline is a legitimate edit, not a mistake to guess at. |
Reactie
| Naam | Type | Verplicht | Wat dit is |
|---|---|---|---|
data | object | Ja | The options, keyed by name. |
Fouten die dit eindpunt kan retourneren
401 · 403 · 404 · 409 · 422 · 429 · 503