agency-board

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

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

Све agency-board крајње тачке

Сва документација за програмере →

Аутентификација

Пошаљите API кључ као bearer токен. Ова крајња тачка не наводи конкретну дозволу у спецификацији, па свом кључу доделите најмања неопходна овлашћења и проверите одговор уместо да претпостављате.

Ова крајња тачка не прихвата id организације. Ваш кључ већ идентификује организацију којој припада, а одговор је ограничен на њу.

Испробајте

Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.

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 конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом 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 collapsing…
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…
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