Update automation settings
Update an automation's keywords, DM message, inline buttons, comment reply, or active status.
Pass buttons: [] to clear all buttons. When buttons is non-empty, dmMessage (the new
one if you're changing it, otherwise the stored one) must be 640 characters or less.
Authorization
bearerAuth API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
{ "success": true, "automation": { "id": "string", "name": "string", "keywords": [ "string" ], "matchMode": "exact", "excludeKeywords": [ "string" ], "typoTolerance": true, "dmMessage": "string", "buttons": [ { "type": "url", "title": "string", "url": "http://example.com", "payload": "string", "phone": "string" } ], "template": { "type": "generic", "imageAspectRatio": "horizontal", "elements": [ { "title": "string", "subtitle": "string", "imageUrl": "http://example.com", "buttons": [ { "type": "url", "title": "string", "url": "http://example.com", "payload": "string" } ] } ] }, "commentReply": "string", "dmMessageVariations": [ "string" ], "commentReplyVariations": [ "string" ], "audience": { "followerStatus": "any", "minFollowerCount": 0, "whenUnknown": "send" }, "followGate": { "message": "string", "buttonLabel": "string", "notFollowingMessage": "string" }, "alsoMatchInDms": true, "isActive": true, "updatedAt": "2019-08-24T14:15:22Z" }}