hosting

PUT /v1/sites/{siteId}/wordpress/smart-updates/schedule

Turn scheduled smart updates on or off and choose the window.

All hosting 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 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

NameTypeRequiredWhat it is
siteId (path)UuidYesSite ID (UUIDv7).

Request body

NameTypeRequiredWhat it is
enabledbooleanYes—
window_weekdayobjectYes0 = Monday … 6 = Sunday; null = every day.
window_hourintegerYes—
timezonestringYesAn IANA time zone name.

Response

NameTypeRequiredWhat it is
dataSiteSmartUpdateScheduleYesA site's scheduled smart update (docs/1135 §8.1).

Errors this endpoint can return

400 · 401 · 403 · 404 · 422 · 429