Update a rule
Updates the fields you send and leaves the rest alone. Send is_active: false to pause a rule without deleting it.
Authentication
AuthorizationBearer
Your API key, issued by ParsChat sales. One key per account, spanning every robot you own. Send it as Authorization: Bearer pk_live_….
Path parameters
robot_id
The robot's id, as returned by the create call.
channel_id
The channel's id.
rule_id
The rule's id.
Request
This endpoint expects an object.
id
ParsChat identifier for the rule.
name
Your label for the rule. Shown in the panel.
trigger
What makes a rule fire.
actions
What to send on a DM rule.
reply_in_comment
Comment rules only. Posts a public reply under the comment.
then_send_dm
Comment rules only. Follows the public reply with a private message.
require_follow
Withhold the reply until the commenter follows the page. The verification round-trip is ours: you do not implement it.
is_active
Whether the rule is currently firing.
created_at
When the rule was created.
Response
The updated rule.
id
ParsChat identifier for the rule.
name
Your label for the rule. Shown in the panel.
trigger
What makes a rule fire.
actions
What to send on a DM rule.
reply_in_comment
Comment rules only. Posts a public reply under the comment.
then_send_dm
Comment rules only. Follows the public reply with a private message.
require_follow
Withhold the reply until the commenter follows the page. The verification round-trip is ours: you do not implement it.
is_active
Whether the rule is currently firing.
created_at
When the rule was created.
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
429
Too Many Requests Error