لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
Save notification channel
PUT
/ admin/ v1/ stores/ {store_id}/ notifications/ channels/ {channel}- notifications:manage
Connect the store's SMS provider or WhatsApp account, or change it. Credentials are sealed at rest and never returned; send only the ones you change. Send If-Match: "v{version}" to avoid overwriting someone else's changes.
معاملات المسار
store_idstringمطلوبمعرّف من نوع
store، مثلstore_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.channelstringمطلوبsmsorwhatsapp
الترويسات
If-Matchstring · أو nullETag from the last read, e.g. "v3"
shop-api-versionYYYY-MMالإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.
الجسم
providerenumمطلوبA messaging provider a store can connect.
- unifonic
- taqnyat
- msegat
- meta
senderstringمطلوبcredentialsobjectNew credential values by key. Absent or blank keys keep their stored values.
activeboolean
ما يُرجعه
200 The account.
الأخطاء
- 403
forbiddenMissingnotifications:manage. - 404
not_foundNo such channel. - 412
precondition_failedThe account changed since it was read. - 422
validation_failedValidation failed.