Skip to main content
POST
/
v0
/
user
/
rules
Create Rule
curl --request POST \
  --url https://api.sumvin.com/v0/user/rules/ \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "rule_prompt": "<string>",
  "applies_to": "all",
  "priority": 0
}
'
{
  "_links": {},
  "rule": {
    "id": "<string>",
    "name": "<string>",
    "rule_prompt": "<string>",
    "applies_to": "<string>",
    "priority": 123,
    "created_at": 123,
    "updated_at": 123
  }
}

Headers

x-juno-orgid
string | null

Tenant org ID for multi-tenant auth

x-sumvin-token
string | null
x-juno-jwt
string | null

Body

application/json
name
string
required
Required string length: 1 - 255
rule_prompt
string
required
Minimum string length: 1
applies_to
string
default:all

'all' or strategy ID

priority
integer
default:0
Required range: 0 <= x <= 1000

Response

Rule created successfully

HAL-style hypermedia links for navigation and available actions.

rule
RuleData · object
required