agency-board

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

Change a rule, or pause and resume it.

Dukkan agency-board wuraren ƙarshe

Tabbatar da Asali

Aiko da maɓallin API a matsayin bearer token. Wannan ma'anar ba ta bayyana takamaiman izini ba a cikin ƙayyadaddun bayanai, don haka ba wa maɓallin ku mafi ƙarancin abin da yake buƙata kuma ku bincika amsar maimakon yin zato.

Wannan wurin ƙarewa ba ya buƙatar ID na ƙungiya. Maɓallin ku ya riga ya gano ƙungiyar da yake ciki, kuma an iyakance amsa a kanta.

Gwada

May gurbin komai da ke cikin kusurwa da ƙimar ka, kuma may gurbin maballi da maballi daga allon sarrafa ka.

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

An shiga? Na'urar sarrafa API da ke cikin sashin kulawarka tana cika ainihin lambar ƙungiyarka da maɓallinka naka, sannan tana gudanar da buƙatar a kan ainihin API don haka zaka iya ganin amsar gaske. Buɗe wannan tashar a cikin na'urar kula da API

Bayani

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.

Sigogi

SunaNau'iAna buƙataAbin da yake
boardId (path)UuidEhProject board ID (UUIDv7).
ruleId (path)UuidEhAutomation rule ID (UUIDv7).

Jikin buƙata

SunaNau'iAna buƙataAbin da yake
namestringEh
descriptionstringA'a
triggerstringEh
trigger_configobjectA'aPer-trigger settings, e.g. `hours_before` for "due date approaching".
conditionsBoardAutomationCondition[]A'aANDed. An empty list means the rule always matches its trigger.
actionsBoardAutomationAction[]A'a
statusstring<enabled, disabled>A'a
positionintegerA'a

Martani

SunaNau'iAna buƙataAbin da yake
idUuidEhUUIDv7 identifier — sortable by creation time (docs/02 §8).
board_idUuidEhUUIDv7 identifier — sortable by creation time (docs/02 §8).
namestringEh
descriptionstringA'a
triggerstringEh
trigger_configobjectA'a
conditionsBoardAutomationCondition[]A'a
actionsBoardAutomationAction[]A'a
statusBoardAutomationStatusEh`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…
positionintegerA'a
run_countintegerA'a
fired_countintegerA'a
consecutive_failuresintegerA'a
suspended_reasonstringA'aWhy 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_atstringA'a
last_fired_atstringA'a
last_run_atstringA'a
next_due_atstringA'aOnly set for a wall-clock rule. Null for a rule on a live act.
created_atstringA'a
updated_atstringA'a

Kuskuren da wannan matsaya za ta iya maido wa

401 · 403 · 404 · 422