agency-board

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

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

Όλα τα τελικά σημεία agency-board

Πισtoποίηση

Στείλτε ένα κλειδί API ως διακριτικό φορέα (bearer token). Αυτό το τελικό σημείο δεν ορίζει μια συγκεκριμένη άδεια στην προδιαγραφή, οπότε δώστε στο κλειδί σας τα ελάχιστα δυνατά δικαιώματα και ελέγξτε την απόκριση αντί να κάνετε υποθέσεις.

Αυτό το τελικό σημείο δεν δέχεται αναγνωριστικό οργανισμού. Το κλειδί σας προσδιορίζει ήδη τον οργανισμό στον οποίο ανήκει, και η απάντηση περιορίζεται σε αυτόν.

Δοκιμάστε το

Ατικatastήstε ό,τι βρίskεtai μέσα σe γώniaδeς μe τis δikές sas timές, kai to placeholder klεidioύ μe éna klεidi apó ton pinaka ελέgchou sas.

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.

Παράμετροι

ΌνομαΤύpοςΥποχρεωτικόΤι είναι
boardId (path)UuidΝαιProject board ID (UUIDv7).

Σώμα αίτησης

ΌνομαΤύpοςΥποχρεωτικόΤι είναι
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Όχι

Απάντηση

ΌνομαΤύpοςΥποχρεωτικόΤι είναι
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