انتقل إلى المحتوى

لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.

Save marketing send rules

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

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

    معاملات المسار

    • store_idstringمطلوب

      معرّف من نوع store، مثل store_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.

    الترويسات

    • shop-api-versionYYYY-MM

      الإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.

    الجسم

    • quiet_hoursobject · أو null

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

    • prayer_pauseboolean
    • weekly_capinteger · أو null

      1–50; null for no cap.

    ما يُرجعه

    200 Saved.

    الأخطاء

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