agency-board

PATCH /v1/agency/boards/{boardId}/automations/{ruleId}

Change a rule, or pause and resume it.

Toate punctele finale agency-board

Autentificare

Trimiteți o cheie API ca token de tip bearer. Acest punct final nu specifică o permisiune anume în specificație, așa că acordați cheii cele mai puține drepturi necesare și verificați răspunsul în loc să faceți presupuneri.

Acest endpoint nu necesită un ID de organizație. Cheia ta identifică deja organizația căreia îi aparține, iar răspunsul este limitat la aceasta.

Încearcă

Înlocuiți tot ce se află între paranteze unghiulare cu propriile valori și substituentul cheie cu o cheie din tabloul de bord.

curl -X PATCH https://api.zinndigital.com/v1/agency/boards/{boardId}/automations/{ruleId} \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "name": <string>, "trigger": <string> }'

Autentificat? Consola API din panoul de control îți completează ID-ul real al organizației și propria cheie și rulează cererea în API-ul live, astfel încât să poți vedea răspunsul efectiv. Deschideți acest punct final în consola API

Detalii

The WHOLE rule is re-validated, not just the changed fields — a change to the trigger alone can invalidate an action that was fine before it. ⛔ `suspended` is not settable. That status means *we* paused the rule after repeated failure and carries a reason the customer has not read; letting it be written would make our decision indistinguishable from theirs. Re-enabling a suspended rule clears its failure count.

Parametri

NumeTipObligatoriuCe este
boardId (path)UuidDaProject board ID (UUIDv7).
ruleId (path)UuidDaAutomation rule ID (UUIDv7).

Corp cerere

NumeTipObligatoriuCe este
namestringDa
descriptionstringNu
triggerstringDa
trigger_configobjectNuPer-trigger settings, e.g. `hours_before` for "due date approaching".
conditionsBoardAutomationCondition[]NuANDed. An empty list means the rule always matches its trigger.
actionsBoardAutomationAction[]Nu
statusstring<enabled, disabled>Nu
positionintegerNu

Răspuns

NumeTipObligatoriuCe este
idUuidDaUUIDv7 identifier — sortable by creation time (docs/02 §8).
board_idUuidDaUUIDv7 identifier — sortable by creation time (docs/02 §8).
namestringDa
descriptionstringNu
triggerstringDa
trigger_configobjectNu
conditionsBoardAutomationCondition[]Nu
actionsBoardAutomationAction[]Nu
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…
positionintegerNu
run_countintegerNu
fired_countintegerNu
consecutive_failuresintegerNu
suspended_reasonstringNuWhy 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_atstringNu
last_fired_atstringNu
last_run_atstringNu
next_due_atstringNuOnly set for a wall-clock rule. Null for a rule on a live act.
created_atstringNu
updated_atstringNu

Erori pe care le poate returna acest punct final

401 · 403 · 404 · 422