لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
Save notification template
PUT
/ admin/ v1/ stores/ {store_id}/ notifications/ messages/ {message}/ templates/ {channel}/ {locale}- notifications:manage
Save the store's version of a template (one channel, one language). It must render with the message's sample data; syntax and rendering errors come back per field with their line.
معاملات المسار
store_idstringمطلوبمعرّف من نوع
store، مثلstore_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.messagestringمطلوبMessage key
channelstringمطلوبemail,smsorwhatsapplocalestringمطلوبenorar
الترويسات
shop-api-versionYYYY-MMالإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.
الجسم
subjectstring · أو nullbodystring · أو nulltextstring · أو nulltemplatestring · أو nullThe approved WhatsApp template's name.
languagestring · أو nullThe WhatsApp template's language code.
parametersarray of strings · أو nullThe WhatsApp body variables
{{1}},{{2}}… in order.button_parameterstring · أو nullThe variable of a WhatsApp URL or copy-code button.
ما يُرجعه
200 The saved template.
الأخطاء
- 403
forbiddenMissingnotifications:manage. - 404
not_foundNo such message, or not on this channel. - 422
validation_failedMissing fields or a template that does not render.