agency-board

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

Change a rule, or pause and resume it.

Բոլոր agency-board վերջնակետերը

Նույնականացում

Ուղարկեք API բանալին որպես bearer թոքեն։ Այս վերջնակետը բնութագրում չի նշում որոշակի թույլտվության մասին, ուստի տվեք ձեր բանալուն նվազագույն անհրաժեշտը և ենթադրություններ անելու փոխարեն ստուգեք պատասխանը:

Այս վերջնակետը կազմակերպության ID չի ընդունում: Ձեր բանալին արդեն իսկ նույնականացնում է այն կազմակերպությունը, որին պատկանում է, և պատասխանը սահմանափակված է դրանով:

Փորձել

Փոխարինեք անկյունային փակագծերում գտնվող ցանկացած բան ձեր սեփական արժեքներով, և բանալու տեղապահը՝ ձեր վահանակի բանալիով:

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-ի դեմ, որպեսզի կարողանաք տեսնել փաստացի պատասխանը: Բացեք այս վերջնակետը 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