agency-board

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

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

Alle agency-board Endpunkte

Authentifizierung

Senden Sie einen API-Schlüssel als Bearer-Token. Dieser Endpunkt gibt in der Spezifikation keine spezifische Berechtigung an. Versehen Sie Ihren Schlüssel daher mit den minimal erforderlichen Rechten und prüfen Sie die Antwort, anstatt Annahmen zu treffen.

Dieser Endpunkt erfordert keine Organisations-ID. Ihr Schlüssel identifiziert bereits die zugehörige Organisation, und die Antwort ist entsprechend eingeschränkt.

Ausprobieren

Ersetzen Sie alles in spitzen Klammern durch Ihre eigenen Werte und den Platzhalter für den Schlüssel durch einen Schlüssel aus Ihrem 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> }'

Angemeldet? Die API-Konsole in Ihrem Dashboard trägt automatisch Ihre echte Organisations-ID sowie Ihren eigenen Schlüssel ein und führt die Anfrage gegen die Live-API aus, sodass Sie die tatsächliche Antwort sehen können. Öffnen Sie diesen Endpunkt in der API-Konsole

Details

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.

Parameter

NameTypErforderlichWas es ist
boardId (path)UuidJaProject board ID (UUIDv7).

Anfragekörper

NameTypErforderlichWas es ist
namestringJa
descriptionstringNein
triggerstringJa
trigger_configobjectNeinPer-trigger settings, e.g. `hours_before` for "due date approaching".
conditionsBoardAutomationCondition[]NeinANDed. An empty list means the rule always matches its trigger.
actionsBoardAutomationAction[]Nein
statusstring<enabled, disabled>Nein
positionintegerNein

Antwort

NameTypErforderlichWas es ist
idUuidJaUUIDv7 identifier — sortable by creation time (docs/02 §8).
board_idUuidJaUUIDv7 identifier — sortable by creation time (docs/02 §8).
namestringJa
descriptionstringNein
triggerstringJa
trigger_configobjectNein
conditionsBoardAutomationCondition[]Nein
actionsBoardAutomationAction[]Nein
statusBoardAutomationStatusJa`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…
positionintegerNein
run_countintegerNein
fired_countintegerNein
consecutive_failuresintegerNein
suspended_reasonstringNeinWhy 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_atstringNein
last_fired_atstringNein
last_run_atstringNein
next_due_atstringNeinOnly set for a wall-clock rule. Null for a rule on a live act.
created_atstringNein
updated_atstringNein

Fehler, die dieser Endpunkt zurückgeben kann

401 · 403 · 404 · 422