agency-board

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

Change a rule, or pause and resume it.

כל נקודות הקצה מסוג agency-board

אימות

שלח מפתח API כטוקן Bearer. נקודת קצה זו אינה מציינת הרשאת ספציפית במפרט, לכן הקצה למפתח שלך את המינימום הנדרש ובדוק את התגובה במקום להניח הנחות.

נקודת קצה זו אינה דורשת מזהה ארגון. המפתח שלך כבר מזהה את הארגון שאליו הוא שייך, והתגובה מוגבלת אליו בלבד.

נסה זאת

החלף כל דבר בסוגריים זוויתיים בערכים משלך, ואת מציין מיקום המפתח במפתח מלוח הבקרה שלך.

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