POST
/
api
/
v1
/
gateways
/
{gateway_id}
/
rules
{
  "active": true,
  "createdAt": "<string>",
  "gatewayID": "<string>",
  "headers": {},
  "id": "<string>",
  "methods": [
    "<string>"
  ],
  "path": "<string>",
  "pluginChain": [
    {
      "enabled": true,
      "id": "<string>",
      "level": "gateway",
      "name": "<string>",
      "parallel": true,
      "priority": 123,
      "settings": {},
      "stage": "pre_request"
    }
  ],
  "preserveHost": true,
  "public": true,
  "retryAttempts": 123,
  "serviceID": "<string>",
  "stripPath": true,
  "trustLens": {
    "app_id": "<string>",
    "team_id": "<string>"
  },
  "updatedAt": "<string>"
}

Headers

Authorization
string
required

Authorization token

Path Parameters

gateway_id
string
required

Gateway ID

Body

application/json

Rule request body

The body is of type object.

Response

201
application/json

Rule created successfully

The response is of type object.