rules
Create Rule
Create a Rule
POST
/
rules
Copy
curl --request POST \
--url https://proxy.qualifire.ai/api/rules \
--header 'Content-Type: application/json' \
--header 'X-Qualifire-API-Key: <api-key>' \
--data '{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"created_at": "<string>",
"active": true,
"trigger": "<string>",
"error_threshold": 50,
"warning_threshold": 50,
"evaluations": {
"request_evaluation": "<string>",
"response_evaluation": "<string>"
},
"actions": {
"block": true,
"default_response": "<string>",
"retry": true,
"retry_cap": 5,
"alert": {
"email": "<string>",
"message": "<string>",
"cooldown": 0
}
}
}'
Copy
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"created_at": "<string>",
"active": true,
"trigger": "<string>",
"error_threshold": 50,
"warning_threshold": 50,
"evaluations": {
"request_evaluation": "<string>",
"response_evaluation": "<string>"
},
"actions": {
"block": true,
"default_response": "<string>",
"retry": true,
"retry_cap": 5,
"alert": {
"email": "<string>",
"message": "<string>",
"cooldown": 0
}
}
}
Authorizations
Body
application/json
Rule to create
The body is of type object
.
Response
200
application/json
OK
The response is of type object
.
Copy
curl --request POST \
--url https://proxy.qualifire.ai/api/rules \
--header 'Content-Type: application/json' \
--header 'X-Qualifire-API-Key: <api-key>' \
--data '{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"created_at": "<string>",
"active": true,
"trigger": "<string>",
"error_threshold": 50,
"warning_threshold": 50,
"evaluations": {
"request_evaluation": "<string>",
"response_evaluation": "<string>"
},
"actions": {
"block": true,
"default_response": "<string>",
"retry": true,
"retry_cap": 5,
"alert": {
"email": "<string>",
"message": "<string>",
"cooldown": 0
}
}
}'
Copy
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"created_at": "<string>",
"active": true,
"trigger": "<string>",
"error_threshold": 50,
"warning_threshold": 50,
"evaluations": {
"request_evaluation": "<string>",
"response_evaluation": "<string>"
},
"actions": {
"block": true,
"default_response": "<string>",
"retry": true,
"retry_cap": 5,
"alert": {
"email": "<string>",
"message": "<string>",
"cooldown": 0
}
}
}
Assistant
Responses are generated using AI and may contain mistakes.