Schedule theme
POST
/ admin/ v1/ stores/ {store_id}/ online-store/ theme-schedules- themes:manage
- Idempotency-Key supported
Schedules a theme to go live at a moment, and optionally to go back.
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.
Headers
Idempotency-KeystringSend the same key to retry safely: the first answer is replayed for 24 hours.
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
store_theme_idstringrequiredTypeID with the
sthmprefix.namestringrequiredstarts_attimestamprequiredends_attimestamp · or nullWhen it goes back; omit to leave it live.
Returns
201 Scheduled.
Errors
- 403
forbiddenMissing permission. - 404
not_foundNo such theme. - 422
validation_failedPast, overlapping or otherwise invalid.