Automations

Update an existing automation

PUT
/api/automations/{id}

Updates editable fields on an Automation owned by the caller. Schedule, timerLogic, conditions, and actions are replaced wholesale when provided; omit fields to leave them unchanged.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/api/automations/string" \  -H "Content-Type: application/json" \  -d '{    "description": "Updated copy and slightly longer delay.",    "timerLogic": {      "enabled": true,      "delay": 36,      "unit": "hours"    },    "maxFollowUpCount": 4  }'
{  "success": true,  "message": "Automation created successfully",  "data": {    "_id": "64d2f9c5e8a1d4e001a0b1c2",    "name": "Follow-up after 24h",    "description": "Send a follow-up SMS if the lead has not replied in 24h.",    "triggerLogicType": "timer",    "enabled": false  }}