{
"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
The body is of type object
.
Rule created successfully
The response is of type object
.