Skip to main content
PUT
/
api
/
v1
/
gateways
/
{gateway_id}
/
rules
/
{rule_id}
cURL
curl --request PUT \
  --url https://api.example.com/api/v1/gateways/{gateway_id}/rules/{rule_id} \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "active": true,
  "headers": {},
  "methods": [
    "<string>"
  ],
  "name": "<string>",
  "path": "<string>",
  "plugin_chain": [
    {
      "enabled": true,
      "id": "<string>",
      "level": "gateway",
      "name": "<string>",
      "parallel": true,
      "priority": 123,
      "settings": {},
      "stage": "pre_request"
    }
  ],
  "preserve_host": true,
  "retry_attempts": 123,
  "service_id": "<string>",
  "strip_path": true,
  "trust_lens": {
    "app_id": "<string>",
    "mapping": {
      "input": {
        "data_projection": {},
        "extract_fields": {}
      },
      "output": {
        "data_projection": {},
        "extract_fields": {}
      }
    },
    "team_id": "<string>",
    "type": "<string>"
  }
}
'
{}

Headers

Authorization
string
required

Authorization token

Path Parameters

gateway_id
string
required

Gateway ID

rule_id
string
required

Rule ID

Body

application/json

Updated rule data

active
boolean
headers
object
methods
string[]
name
string
path
string
plugin_chain
object[]
preserve_host
boolean
retry_attempts
integer
service_id
string
strip_path
boolean
trust_lens
object

Response

Rule updated successfully