agency-board

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

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

Все эндпоинты agency-board

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

Передайте API-ключ в качестве маркера носителя (bearer token). Эта конечная точка не указывает конкретное разрешение в спецификации, поэтому предоставьте своему ключу минимум необходимых прав и проверьте ответ, вместо того чтобы делать предположения.

Этот эндпоинт не принимает идентификатор организации. Ваш ключ уже определяет организацию, к которой он принадлежит, и ответ ограничивается ее рамками.

Попробовать

Замените всё в угловых скобках на собственные значения, а плейсхолдер ключа — на ключ из вашей панели управления.

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