SmartGare
API referenceEndpoints

Create a stable rule identity

POST/rules/v1/rules
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

*/*

curl -X POST "https://example.com/rules/v1/rules" \  -H "Content-Type: application/json" \  -d '{    "domain": "string",    "code": "string",    "name": "string",    "description": "string"  }'
{  "id": "string",  "domain": "string",  "code": "string",  "name": "string",  "description": "string",  "status": "ACTIVE",  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}