connections

POST /v1/waap/domains/{domainId}/mode

Switch a protected domain between monitor, block and off.

সমস্ত connections এন্ডপয়েন্ট

সমস্ত ডেভেলপার ডকুমেন্টেশন

প্রমাণীকরণ

একটি বিয়ার টোকেন হিসেবে একটি এপিআই কি পাঠান। এই এন্ডপয়েন্টটি স্পেসিফিকেশনে কোনো নির্দিষ্ট অনুমতির কথা বলে না, তাই অনুমান না করে আপনার কি-কে এর জন্য ন্যূনতম প্রয়োজনীয় অনুমতি দিন এবং রেসপন্স পরীক্ষা করুন।

এই এন্ডপয়েন্টটি কোনো অর্গানাইজেশন আইডি নেয় না। আপনার কীটি ইতিমধ্যে এটি যে অর্গানাইজেশনের অন্তর্গত তা শনাক্ত করে এবং প্রতিক্রিয়াটি সেই অনুযায়ী নির্ধারিত হয়।

চেষ্টা করুন

কোণ বন্ধনীতে থাকা যেকোনো কিছু আপনার নিজস্ব মান দিয়ে এবং কী প্লেসহোল্ডারটি আপনার ড্যাশবোর্ডের একটি কী দিয়ে প্রতিস্থাপন করুন।

curl -X POST https://api.zinndigital.com/v1/waap/domains/{domainId}/mode \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "mode": <string<monitor, block, off>> }'

লগ ইন করা আছে? আপনার ড্যাশবোর্ডের এপিআই কনসোল আপনার আসল অর্গানাইজেশন আইডি এবং আপনার নিজের কি পূরণ করে দেয়, এবং লাইভ এপিআই-এর বিপরীতে অনুরোধটি চালায় যাতে আপনি প্রকৃত প্রতিক্রিয়া দেখতে পান। এই এন্ডপয়েন্টটি এপিআই কনসোলে খুলুন

বিবরণ

The one call here that changes whether traffic is refused. ⛔ The response reports the mode the provider says is now in force, which is not necessarily the one that was requested: providers apply some transitions asynchronously and refuse others outright. Echoing the request back would leave every screen showing a protection state that was never applied. ⛔ locked is rejected with 422: it is a state the provider assigns, never one that can be requested, and accepting it would build a control that always fails.

পরামিতি

নামধরনআবশ্যকএটি কী
domainId (path)stringহ্যাঁThe provider's id for the protected domain.

অনুরোধের বডি

নামধরনআবশ্যকএটি কী
modestring<monitor, block, off>হ্যাঁlocked is absent on purpose: it is a state the provider assigns, never one that can be requested, and the API answers 422 for it.

প্রতিক্রিয়া

নামধরনআবশ্যকএটি কী
idstringহ্যাঁ
domainstringহ্যাঁ
modestring<monitor, block, off, locked>হ্যাঁ⛔⛔ monitor logs every match and delivers the traffic anyway. It produces analytics and blocks nothing, and on a dashboard it is indistinguishable from block unless this…
created_atstringনা
total_requestsintegerনাnull when the provider does not report it — never 0.
blocked_requestsintegerনাnull when unknown. "Nothing was blocked" and "we cannot see what was blocked" are opposite answers and must not render alike.

এই এন্ডপয়েন্ট থেকে যেসব ত্রুটি আসতে পারে

401 · 422 · 429