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>"
}
}
'{}Updates an existing rule
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>"
}
}
'{}Authorization token
Updated rule data
Rule updated successfully