agency-board

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

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

Të gjitha pikat e skajshme agency-board

Autentifikimi

Drgoni një çelës API si një token mbajtës. Ky pikëndalim nuk specifikon një leje specifike në specifikim, prandaj jepini çelësit tuaj minimumin e nevojshëm dhe kontrolloni përgjigjen në vend që të supozoni.

Ky pikëndalim nuk pranon id të organizatës. Çelësi juaj tashmë identifikon organizatën së cilës i përket dhe përgjigjja kufizohet vetëm për atë.

Provoje

Zëvendësoni çdo gjë brenda kllapave këndore me vlerat tuaja dhe vendbanuesin e çelësit me një çelës nga paneli juaj.

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

Jeni kyçur? Konsola e API-së në panelin tuaj plotëson ID-në tuaj reale të organizatës dhe çelësin tuaj, dhe ekzekuton kërkesën kundrejt API-së live, kështu që ju mund të shihni përgjigjen aktuale. Hapni këtë pikë fundore në konsolën e API-së

Detajet

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.

Parametrat

EmriLlojiKërkohetÇfarë është kjo
boardId (path)UuidPoProject board ID (UUIDv7).

Trupi i kërkesës

EmriLlojiKërkohetÇfarë është kjo
namestringPo
descriptionstringJo
triggerstringPo
trigger_configobjectJoPer-trigger settings, e.g. `hours_before` for "due date approaching".
conditionsBoardAutomationCondition[]JoANDed. An empty list means the rule always matches its trigger.
actionsBoardAutomationAction[]Jo
statusstring<enabled, disabled>Jo
positionintegerJo

Përgjigja

EmriLlojiKërkohetÇfarë është kjo
idUuidPoUUIDv7 identifier — sortable by creation time (docs/02 §8).
board_idUuidPoUUIDv7 identifier — sortable by creation time (docs/02 §8).
namestringPo
descriptionstringJo
triggerstringPo
trigger_configobjectJo
conditionsBoardAutomationCondition[]Jo
actionsBoardAutomationAction[]Jo
statusBoardAutomationStatusPo`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…
positionintegerJo
run_countintegerJo
fired_countintegerJo
consecutive_failuresintegerJo
suspended_reasonstringJoWhy 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_atstringJo
last_fired_atstringJo
last_run_atstringJo
next_due_atstringJoOnly set for a wall-clock rule. Null for a rule on a live act.
created_atstringJo
updated_atstringJo

Gabimet që ky pikëndalim mund të kthejë

401 · 403 · 404 · 422