agency-board

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

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

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

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

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.

Mga Parameter

PangalanUriKailanganAno ito
boardId (path)UuidOoProject board 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