cURL
curl --request PATCH \ --url https://api.notifique.dev/v1/automations/{automationId} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "status": "ENABLED" } '
200
Example
{ "success": true, "data": { "id": "<string>", "name": "<string>", "status": "ENABLED", "triggerEventName": "<string>", "graphJson": { "steps": [ { "stepKey": "<string>", "stepType": "trigger", "config": { "eventName": "<string>" } } ], "connections": [ { "from": "<string>", "to": "<string>", "branch": "true" } ], "nodeLayout": {} }, "graphVersion": 123, "updatedAt": "2023-11-07T05:31:56Z" } }
Authorization: Bearer sk_live_...
Cuid da automação.
256
ENABLED
DISABLED
Grafo acíclico (DAG) com exatamente um trigger. Arestas a partir de condition exigem branch: true | false.
trigger
condition
branch
true
false
Show child attributes
Atualizado (inclui graphJson e graphVersion incrementado quando o grafo muda).
graphJson
graphVersion
Was this page helpful?