{
"active": true,
"createdAt": "<string>",
"gatewayID": "<string>",
"headers": {},
"id": "<string>",
"methods": [
"<string>"
],
"name": "<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>",
"mapping": {
"input": {
"data_projection": {},
"extract_fields": {}
},
"output": {
"data_projection": {},
"extract_fields": {}
}
},
"team_id": "<string>",
"type": "<string>"
},
"updatedAt": "<string>"
}Adds a new rule under a gateway
{
"active": true,
"createdAt": "<string>",
"gatewayID": "<string>",
"headers": {},
"id": "<string>",
"methods": [
"<string>"
],
"name": "<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>",
"mapping": {
"input": {
"data_projection": {},
"extract_fields": {}
},
"output": {
"data_projection": {},
"extract_fields": {}
}
},
"team_id": "<string>",
"type": "<string>"
},
"updatedAt": "<string>"
}Authorization token
Gateway ID
Rule request body
Show child attributes
ID of the gateway or rule this plugin belongs to
gateway, rule Whether this plugin can run in parallel
pre_request, post_request, pre_response, post_response Show child attributes
Show child attributes
Rule created successfully
Show child attributes
ID of the gateway or rule this plugin belongs to
gateway, rule Whether this plugin can run in parallel
pre_request, post_request, pre_response, post_response Show child attributes
Show child attributes