agency-board

PATCH /v1/agency/boards/{boardId}/automations/{ruleId}

Change a rule, or pause and resume it.

تمام agency-board اینڈ پوائنٹس

توثيقِ شناخت

ایک API کلید بطور بیر ٹوکن (bearer token) ارسال کریں۔ یہ اینڈ پوائنٹ اسپیسیفیکیشن میں کسی مخصوص اجازت کا ذکر نہیں کرتا، اس لیے فرض کرنے کے بجائے اپنی کلید کو کم از کم درکار اجازت دیں اور رسپانس چیک کریں۔

یہ اینڈ پوائنٹ کوئی آرگنائزیشن آئی ڈی نہیں لیتا۔ آپ کی کلید پہلے ہی اس آرگنائزیشن کی شناخت کرتی ہے جس سے یہ تعلق رکھتی ہے، اور اس کا جواب اسی کے مطابق محدود ہوتا ہے۔

آزمائیں

کوئی بھی چیز جو زاویہ دار قوسین میں ہو اسے اپنی اقدار سے بدلیں، اور کلیدی پلیس ہولڈر کو اپنے ڈیش بورڈ کی کسی کلید سے بدلیں۔

curl -X PATCH https://api.zinndigital.com/v1/agency/boards/{boardId}/automations/{ruleId} \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "name": <string>, "trigger": <string> }'

لاگ ان ہیں؟ آپ کے ڈیش بورڈ میں موجود API کنسول آپ کی حقیقی تنظیم کی آئی ڈی اور آپ کی اپنی کلید خود بخود پُر کر دیتا ہے، اور لائیو API پر درخواست چلاتا ہے تاکہ آپ اصل ردعمل دیکھ سکیں۔ اس اینڈ پوائنٹ کو API کنسول میں کھولیں

تفصیلات

The WHOLE rule is re-validated, not just the changed fields — a change to the trigger alone can invalidate an action that was fine before it. ⛔ `suspended` is not settable. That status means *we* paused the rule after repeated failure and carries a reason the customer has not read; letting it be written would make our decision indistinguishable from theirs. Re-enabling a suspended rule clears its failure count.

پیرامیٹرز

نامقسملازمییہ کیا ہے
boardId (path)UuidہاںProject board ID (UUIDv7).
ruleId (path)UuidہاںAutomation rule ID (UUIDv7).

درخواست کا باڈی

نامقسملازمییہ کیا ہے
namestringہاں
descriptionstringنہیں
triggerstringہاں
trigger_configobjectنہیںPer-trigger settings, e.g. `hours_before` for "due date approaching".
conditionsBoardAutomationCondition[]نہیںANDed. An empty list means the rule always matches its trigger.
actionsBoardAutomationAction[]نہیں
statusstring<enabled, disabled>نہیں
positionintegerنہیں

جواب

نامقسملازمییہ کیا ہے
idUuidہاںUUIDv7 identifier — sortable by creation time (docs/02 §8).
board_idUuidہاںUUIDv7 identifier — sortable by creation time (docs/02 §8).
namestringہاں
descriptionstringنہیں
triggerstringہاں
trigger_configobjectنہیں
conditionsBoardAutomationCondition[]نہیں
actionsBoardAutomationAction[]نہیں
statusBoardAutomationStatusہاں`suspended` means WE paused it after repeated failure and it carries a reason the customer has not read. It is a third state rather than a reuse of `disabled`, because collapsin…
positionintegerنہیں
run_countintegerنہیں
fired_countintegerنہیں
consecutive_failuresintegerنہیں
suspended_reasonstringنہیںWhy we paused this rule, in authored copy from a closed table — never an exception, a status or a message from our own code. The per-failure detail lives on each run (`action_re…
suspended_atstringنہیں
last_fired_atstringنہیں
last_run_atstringنہیں
next_due_atstringنہیںOnly set for a wall-clock rule. Null for a rule on a live act.
created_atstringنہیں
updated_atstringنہیں

وہ خرابیان جو یہ اینڈ پوائنٹ واپس کر سکتا ہے

401 · 403 · 404 · 422