v1

latestOpenAPI 3.0.12026-07-142257126.4 KB
rules

Updates a Reactor rule

patch/apps/{app_id}/rules/{rule_id}

Path parameters

app_idstring required

The application ID.

rule_idstring required

The rule ID.

Request body

OR
{"stackTrail":"components:schemas:ifttt_rule_patch","oasType":"schema","type":"unknown","extensionFields":{"x-requestMode":{"description":"Single request mode sends each event separately to the endpoint specified by the rule. You can read more about single request mode events in the <a href=\"https://ably.com/documentation/general/events#batching\">Ably documentation</a>.","enum":["single"],"example":"single","type":"string"},"x-ruleType":{"description":"The type of rule. In this case IFTTT. See the <a href=\"https://ably.com/integrations\">documentation</a> for further information.","enum":["http/ifttt"],"type":"string"},"x-source":{"$ref":"#/components/schemas/rule_source"},"x-target":{"additionalProperties":false,"properties":{"eventName":{"type":"string"},"webhookKey":{"type":"string"}},"type":"object"}}}
OR
OR
OR
OR
OR
OR
OR
OR
OR

Example request

{
  "requestMode": "single",
  "source": {
    "type": "channel.message"
  },
  "status": "enabled"
}

Response

Reactor rule updated

OR
OR
OR
OR
OR
OR
OR
OR
OR
OR

Example response

{
  "appId": "28GY6a",
  "created": 1602844091815,
  "id": "83IzAB",
  "modified": 1614679682091,
  "requestMode": "single",
  "source": {
    "type": "channel.message"
  },
  "status": "enabled"
}