agency-board

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

Change a rule, or pause and resume it.

ټول agency-board پای ټکي

تصدیق‌هویت

د بیارر ټوکن په توګه یو API کي وسپارئ. دا پای ټکی په مشخصاتو کې کوم ځانګړی اجازه لیک نه بیانوي، نو خپل کیلي ته لږترلږه هغه څه ورکړئ چې ورته اړتیا لري او د فرض کولو پر ځای ځواب وپلټئ.

دا پای نقطه د سازمان هېڅ آی ډي نه اخلي. ستاسو کیلي مخکې تر مخکې هغه سازمان په ګوته کوي چې پورې اړه لري، او ځواب ورته محدود دی.

هڅه وکړئ

د انګلیسي په زاوي پنسونو کې هرڅه د خپلو ارزښتونو سره بدل کړئ، او د کلي ځای لرونکی ستاسو د ډشبورډ د کلي سره.

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 کنسول ستاسو د اصلي سازمان ID او ستاسو خپله کیلي ډکوي، او غوښتنه د ژوندی API په وړاندې پرمخ وړي ترڅو تاسو وکولی شئ اصلي ځواب وګورئ. دا پای ټکی (endpoint) د 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