Add or change a push rule.
PUT {{baseUrl}}/pushrules/:scope/:kind/:ruleId?before=someRuleId&after=anotherRuleId
This endpoint allows the creation, modification and deletion of pushers for this user ID. The behaviour of this endpoint varies depending on the values in the JSON body.
When creating push rules, they MUST be enabled by default.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
before | string | Use 'before' with a rule_id as its value to make the new rule the | |
next-most important rule with respect to the given user defined rule. | |||
It is not possible to add a rule relative to a predefined server rule. | |||
after | string | This makes the new rule the next-less important rule relative to the | |
given user defined rule. It is not possible to add a rule relative | |||
to a predefined server rule. |
Request Body
{"pattern"=>"cake*lie", "actions"=>["notify"]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{}