agency-board

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

Change a rule, or pause and resume it.

Lahat ng agency-board endpoint

Pagpapatotoo

Magpadala ng API key bilang bearer token. Ang endpoint na ito ay hindi naglatag ng tiyak na pahintulot sa pagtutukoy, kaya ibigay sa iyong key ang pinakamababang kailangan nito at suriin ang tugon sa halip na umasa.

Ang endpoint na ito ay hindi nangangailangan ng id ng organisasyon. Natutukoy na ng iyong key ang organisasyong kinabibilangan nito, at nakatuon ang tugon dito.

Subukan ito

Palitan ang anuman sa loob ng mga panaklong na may anggulo ng iyong sariling mga halaga, at ang placeholder ng key na may key mula sa iyong dashboard.

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> }'

Nakalagda? Ang API console sa iyong dashboard ay awtomatikong naglalagay ng iyong tunay na ID ng organisasyon at sariling susi, at pinapatakbo ang kahilingan laban sa live na API upang makita mo ang aktwal na tugon. Buksan ang endpoint na ito sa console ng API

Mga Detalye

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.

Mga Parameter

PangalanUriKailanganAno ito
boardId (path)UuidOoProject board ID (UUIDv7).
ruleId (path)UuidOoAutomation rule ID (UUIDv7).

Katawan ng kahilingan

PangalanUriKailanganAno ito
namestringOo
descriptionstringHindi
triggerstringOo
trigger_configobjectHindiPer-trigger settings, e.g. `hours_before` for "due date approaching".
conditionsBoardAutomationCondition[]HindiANDed. An empty list means the rule always matches its trigger.
actionsBoardAutomationAction[]Hindi
statusstring<enabled, disabled>Hindi
positionintegerHindi

Tugon

PangalanUriKailanganAno ito
idUuidOoUUIDv7 identifier — sortable by creation time (docs/02 §8).
board_idUuidOoUUIDv7 identifier — sortable by creation time (docs/02 §8).
namestringOo
descriptionstringHindi
triggerstringOo
trigger_configobjectHindi
conditionsBoardAutomationCondition[]Hindi
actionsBoardAutomationAction[]Hindi
statusBoardAutomationStatusOo`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…
positionintegerHindi
run_countintegerHindi
fired_countintegerHindi
consecutive_failuresintegerHindi
suspended_reasonstringHindiWhy 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_atstringHindi
last_fired_atstringHindi
last_run_atstringHindi
next_due_atstringHindiOnly set for a wall-clock rule. Null for a rule on a live act.
created_atstringHindi
updated_atstringHindi

Mga error na maibabalik ng endpoint na ito

401 · 403 · 404 · 422