hosting
PUT /v1/sites/{siteId}/wordpress/smart-updates/schedule
Turn scheduled smart updates on or off and choose the window.
Authentication
Send an API key as a bearer token. The key must carry the sites.panel_access 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/sites/{siteId}/wordpress/smart-updates/schedule \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ "enabled": <boolean>, "window_weekday": <object>, "window_hour": <integer>, "timezone": <string> }'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
Writes the window. Turning it on is refused 422 when the plan has no staging or the account is not in good standing (the same refusals as a clicked smart update), and for an unknown time zone. A window whose site has a staging copy, nothing to update, or a run already going is skipped and recorded in last_outcome; the schedule keeps its next window. Requires sites.panel_access; audited as wordpress.smart_update_schedule.
Parameters
| Name | Type | Required | What it is |
|---|---|---|---|
siteId (path) | Uuid | Yes | Site ID (UUIDv7). |
Request body
| Name | Type | Required | What it is |
|---|---|---|---|
enabled | boolean | Yes | — |
window_weekday | object | Yes | 0 = Monday … 6 = Sunday; null = every day. |
window_hour | integer | Yes | — |
timezone | string | Yes | An IANA time zone name. |
Response
| Name | Type | Required | What it is |
|---|---|---|---|
data | SiteSmartUpdateSchedule | Yes | A site's scheduled smart update (docs/1135 §8.1). |
Errors this endpoint can return
400 · 401 · 403 · 404 · 422 · 429