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,
  "updatedAt": "<string>"
}

Path Parameters

gateway_id
string
required

Gateway ID

Body

application/json
Rule request body
path
string
required
service_id
string
required
headers
object
methods
string[]
plugin_chain
object[]
preserve_host
boolean
retry_attempts
integer
strip_path
boolean

Response

201
application/json
Rule created successfully
active
boolean
createdAt
string
gatewayID
string
headers
object
id
string
methods
string[]
path
string
pluginChain
object[]
preserveHost
boolean
public
boolean
retryAttempts
integer
serviceID
string
stripPath
boolean
updatedAt
string