Update a comment automation
Requires read_write. Limited to 120 updates per hour per user. Inactive automations are not evaluated; pending deliveries are skipped when disabled. Instagram only. A comment permits one private reply ever, within 7 days. Story replies use normal DMs inside the 24-hour messaging window. Buttons fall back to text with title and URL lines if Meta rejects the template. Reconnect the account on 403 platformCapabilityMissing to grant instagram_business_manage_comments and instagram_business_manage_messages.
Authorization
bearerAuth PostZen API key.
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Partial update. accountId is immutable. Enabling checks capabilities and duplicate per-post limits. Unsupported fields are rejected as on create.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/v1/comment-automations/string" \ -H "Content-Type: application/json" \ -d '{}'{ "message": "string", "automation": { "accountId": "string", "profileId": "string", "name": "string", "trigger": "comment", "platformPostId": "string", "postId": "string", "postTitle": "string", "keywords": [], "matchMode": "exact", "excludeKeywords": [], "typoTolerance": false, "dmMessage": "string", "dmMessageVariations": [], "buttons": [], "commentReply": "string", "commentReplyVariations": [], "dmDelaySeconds": 0, "commentReplyDelaySeconds": 0, "isActive": true, "linkTracking": false, "id": "string", "platform": "instagram", "alsoMatchInDms": false, "stats": { "totalTriggered": 0, "totalSent": 0, "totalFailed": 0 }, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }}{ "error": "JSON body is required"}{ "error": "Unauthorized"}{ "error": "API key requires read_write permission"}{ "error": "Not found"}{ "error": "string", "type": "string", "code": "string", "param": "string"}{ "error": "rate_limited", "retryAfter": 30}{ "error": "Failed to create post"}Get a comment automation GET
Returns the automation and 20 newest logs. Out-of-scope ids return 404 automationNotFound. Instagram only. A comment permits one private reply ever, within 7 days. Story replies use normal DMs inside the 24-hour messaging window. Buttons fall back to text with title and URL lines if Meta rejects the template. Reconnect the account on 403 platformCapabilityMissing to grant instagram_business_manage_comments and instagram_business_manage_messages.
Delete a comment automation DELETE
Requires read_write. Limited to 60 deletes per hour per user. Deletes the automation and its logs in batches. Instagram only. A comment permits one private reply ever, within 7 days. Story replies use normal DMs inside the 24-hour messaging window. Buttons fall back to text with title and URL lines if Meta rejects the template. Reconnect the account on 403 platformCapabilityMissing to grant instagram_business_manage_comments and instagram_business_manage_messages.