API ReferenceRules
Toggle a custom rule on or off
Requires scope: `rules:write` and a paid plan. Flips the rule's `active` flag.
Authorization
ApiKey AuthorizationBearer <token>
A personal API key created in the dashboard (Starter, Pro, and Team plans).
In: header
Path Parameters
id*integer
Response Body
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/custom_rules/0/toggle"{ "custom_rule": { "id": 0, "title": "string", "content": "string", "active": true, "scope": "reply", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" }}