Vigilfield Docs
API referenceRules

`POST /rules` — create a rule.

POST/rules

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/rules" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
{  "alerting": null,  "covered_through": "string",  "created_at": "string",  "description": "string",  "enabled": true,  "id": "string",  "last_run_at": "string",  "last_run_status": null,  "name": "string",  "next_run_at": "string",  "org_id": "string",  "owner_team_id": "string",  "query": null,  "schedule": "string",  "status": null,  "updated_at": "string"}