v1

latestOpenAPI 3.0.12026-07-142257126.4 KB
rules

Creates a Reactor rule

Creates a rule for the application with the specified application ID.

post/apps/{app_id}/rules

Path parameters

app_idstring required

The application ID.

Request body

OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR

Example request

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

Response

Reactor rule created

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"
}