Save marketing send rules
PUT
/ admin/ v1/ stores/ {store_id}/ notifications/ marketing-rulesReplaces the marketing send rules. Messages already queued keep their time.
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
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
quiet_hoursobject · or nullLocal times,
HH:MM; the window may span midnight (22:00–09:00).prayer_pausebooleanweekly_capinteger · or null1–50;
nullfor no cap.
Returns
200 Saved.
Errors
- 422
validation_failedQuiet hours that start and end together, or a cap outside 1–50.