POST
/
v1
/
rules
curl --location --request POST 'https://api.stateset.com/v1/rules' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
    "id": "2438cf38-4004-41d3-8c90-131735ff7d00",
    "type": "System Rule",
    "name": "Rule 1",
    "description": "This is the rule",
    "created_at": "2023-11-28T00:00:00.000000Z",
    "updated_at": "2023-11-28T00:00:00.000000Z"
}'
{
    "id": "2438cf38-4004-41d3-8c90-131735ff7d00",
    "type": "System Rule",
    "name": "Rule 1",
    "description": "This is the rule",
    "created_at": "2023-11-28T00:00:00.000000Z",
    "updated_at": "2023-11-28T00:00:00.000000Z"
}

Body

id
string
This is the id of the rule.
type
string
This is the type of the rule.
name
string
This is the name of the rule.
description
string
This is the description of the rule.
created_at
string
This is the created_at of the rule.
updated_at
string
This is the updated_at of the rule.

Response

id
string
This is the id of the rule.
type
string
This is the type of the rule.
name
string
This is the name of the rule.
description
string
This is the description of the rule.
created_at
string
This is the created_at of the rule.
updated_at
string
This is the updated_at of the rule.
curl --location --request POST 'https://api.stateset.com/v1/rules' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
    "id": "2438cf38-4004-41d3-8c90-131735ff7d00",
    "type": "System Rule",
    "name": "Rule 1",
    "description": "This is the rule",
    "created_at": "2023-11-28T00:00:00.000000Z",
    "updated_at": "2023-11-28T00:00:00.000000Z"
}'
{
    "id": "2438cf38-4004-41d3-8c90-131735ff7d00",
    "type": "System Rule",
    "name": "Rule 1",
    "description": "This is the rule",
    "created_at": "2023-11-28T00:00:00.000000Z",
    "updated_at": "2023-11-28T00:00:00.000000Z"
}