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

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

Set notification message channels

PUT/admin/v1/stores/{store_id}/notifications/messages/{message}/channels
  • notifications:manage

Choose the channels a message goes out on; an empty list turns it off. SMS and WhatsApp also need a connected account.

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

  • store_idstringمطلوب

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

  • messagestringمطلوب

    Message key

الترويسات

  • shop-api-versionYYYY-MM

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

الجسم

  • channelsarray of enumsمطلوب

    The channels the message goes out on; empty turns it off.

    • email
    • sms
    • whatsapp

ما يُرجعه

200 The message.

الأخطاء

  • 403forbiddenMissing notifications:manage.
  • 404not_foundNo such message.
  • 422validation_failedA channel the message cannot use.