# PATCH /social/comment-reply-rules/:rule_id

**Resource:** [SOCIAL](./social.md)  
**MCP tool:** `update_social_comment_reply_rule`  
**Scopes:** `social:write`  
**Write operation:** yes

Change a comment reply rule made before comment replies moved to Conversation Flows: send only what should change (name, keywords, message, public_reply, post_id, enabled). enabled false pauses it; a paused rule cannot be switched back on (make a Conversation Flow that starts from a comment instead). With the approval tier it waits in Approvals.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `rule_id` | path | string | yes | The rule id from list_social_comment_reply_rules. |
| `name` | body | string | no | A short name for the rule, e.g. "Free guide" (up to 100 characters). |
| `keywords` | body | array | no | Words or phrases that trigger the rule, matched as whole words in any case ("guide" matches "GUIDE please" but not "guided"). Up to 25. Send an empty list to answer every comment. |
| `message` | body | string | no | The private message sent to the person who commented (up to 1,000 characters). Instagram allows one per comment, within 7 days of it. |
| `public_reply` | body | string | no | Optional reply posted under the comment for everyone to see, e.g. "Sent you a message!" (up to 2,200 characters). Send an empty string for none. |
| `post_id` | body | string | no | Only answer comments on this post (a social post id from list_social_posts that went to this Instagram account). Leave out, or send an empty string, to answer comments on every post on the account. |
| `enabled` | body | boolean | no | Whether the rule answers comments. Default true. |
| `require_approval` | body | boolean | no | Optional. Set true to route this write into the approval queue for human review instead of executing it immediately (returns 202 + an approval_id). Works even when your key/token has permission to execute directly. |

## Request example

```bash
curl -X PATCH   "https://api.trustpager.com/functions/v1/api/v1/social/comment-reply-rules/:rule_id"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"name":"...","keywords":"...","message":"..."}'
```

---
Base URL: `https://api.trustpager.com/functions/v1/api/v1` — Auth: `Authorization: Bearer YOUR_API_KEY`