agency-board

POST /v1/agency/boards/{boardId}/automations

Create a rule — when this happens, only if that, then do these.

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

אימות

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

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

נסה זאת

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

curl -X POST https://api.zinndigital.com/v1/agency/boards/{boardId}/automations \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "name": <string>, "trigger": <string> }'

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

פרטים

Validated against the catalogue at save time, not at run time. A rule pairing a card action with a trigger that carries no card, naming a context field its trigger does not publish, or using an operator the field's type cannot take is refused here with the offending clause named — because the alternative is a rule that sits in the list looking enabled and does nothing for ever, whose only evidence is an absence.

פרמטרים

שםסוגנדרשמה זה
boardId (path)UuidכןProject board 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