Update a Comment to DM rule

Only the fields given change. active false pauses the rule; mediaId null makes it watch every post.

patch/v1/comment-dm-rules/{id}

Request

  • Base URL: https://api.breakreach.com
  • URL: https://api.breakreach.com/v1/comment-dm-rules/{id}
  • Auth: HTTP bearer

Path parameters

idstring required

Request body

accountIdstring

Instagram account or Facebook Page id from /v1/accounts (create only, a rule can't change account)

mediaIdstring nullable

Instagram or Facebook post id to watch (from /v1/comment-dm-rules/media or the postId of /v1/comments). Omit or null for every post

postIdstring

Instead of mediaId: a Breakreach post id published on this account

keywordsstring[]

Words or phrases that trigger the DM, case and accents ignored. Empty = every comment

match'contains' | 'exact'

contains = the keyword appears as a whole word or phrase; exact = the comment is just the keyword (punctuation and emoji around it ignored)

dmTextstring

The DM sent to the commenter, links allowed. {username} becomes their @handle on Instagram, their first name on Facebook. Required on create

publicRepliesstring[]

Optional public replies under the comment once the DM is sent, one picked at random. {username} becomes their @handle on Instagram, their first name on Facebook

activeboolean
workspacestring

Response

Updated

Changes

No recorded changes to this operation across all 1 revision of this API.