agency-board

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

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

Sve agency-board krajnje tačke

Autentifikacija

Pošaljite API ključ kao bearer token. Ova krajnja tačka ne navodi specifičnu dozvolu u specifikaciji, zato dodelite svom ključu minimum potrebnih ovlašćenja i proverite odgovor umesto da pretpostavljate.

Ovaj krajnji tačka ne prihvata ID organizacije. Vaš ključ već identifikuje organizaciju kojoj pripada, a odgovor je ograničen na nju.

Isprobajte

Zamenite bilo šta u uglastim zagradama sopstvenim vrednostima, a ključni placeholder sa ključem sa vaše kontrolne table.

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

Prijavljeni ste? API konzola na vašoj kontrolnoj tabli automatski popunjava ID vaše stvarne organizacije i vaš sopstveni ključ, i izvršava zahtev nad API-jem uživo tako da možete videti stvarni odgovor. Otvorite ovu krajnju tačku u API konzoli

Detalji

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.

Parametri

NazivVrstaObaveznoŠta je ovo
boardId (path)UuidDaProject board ID (UUIDv7).

Telo zahteva

NazivVrstaObaveznoŠta je ovo
namestringDa
descriptionstringNe
triggerstringDa
trigger_configobjectNePer-trigger settings, e.g. `hours_before` for "due date approaching".
conditionsBoardAutomationCondition[]NeANDed. An empty list means the rule always matches its trigger.
actionsBoardAutomationAction[]Ne
statusstring<enabled, disabled>Ne
positionintegerNe

Odgovor

NazivVrstaObaveznoŠta je ovo
idUuidDaUUIDv7 identifier — sortable by creation time (docs/02 §8).
board_idUuidDaUUIDv7 identifier — sortable by creation time (docs/02 §8).
namestringDa
descriptionstringNe
triggerstringDa
trigger_configobjectNe
conditionsBoardAutomationCondition[]Ne
actionsBoardAutomationAction[]Ne
statusBoardAutomationStatusDa`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…
positionintegerNe
run_countintegerNe
fired_countintegerNe
consecutive_failuresintegerNe
suspended_reasonstringNeWhy 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_atstringNe
last_fired_atstringNe
last_run_atstringNe
next_due_atstringNeOnly set for a wall-clock rule. Null for a rule on a live act.
created_atstringNe
updated_atstringNe

Greške koje ovaj krajnji tačka može da vrati

401 · 403 · 404 · 422