Skip to content

Save marketing send rules

PUT/admin/v1/stores/{store_id}/notifications/marketing-rules

    Replaces the marketing send rules. Messages already queued keep their time.

    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

    • shop-api-versionYYYY-MM

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

    Body

    • quiet_hoursobject · or null

      Local times, HH:MM; the window may span midnight (22:00–09:00).

    • prayer_pauseboolean
    • weekly_capinteger · or null

      1–50; null for no cap.

    Returns

    200 Saved.

    Errors

    • 422validation_failedQuiet hours that start and end together, or a cap outside 1–50.