Skip to content

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_idstringrequired

    The store's ID, like store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.

Headers

  • Idempotency-Keystring

    Send the same key to retry safely: the first answer is replayed for 24 hours.

  • shop-api-versionYYYY-MM

    The version to answer in. Without it, your app’s pinned version, else the newest.

Body

  • store_theme_idstringrequired

    TypeID with the sthm prefix.

  • namestringrequired
  • starts_attimestamprequired
  • ends_attimestamp · or null

    When it goes back; omit to leave it live.

Returns

201 Scheduled.

Errors

  • 403forbiddenMissing permission.
  • 404not_foundNo such theme.
  • 422validation_failedPast, overlapping or otherwise invalid.