Skip to main content
POST
/
v0
/
user
/
rules
Create Rule
curl --request POST \
  --url https://api.example.com/v0/user/rules/ \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "rule_prompt": "<string>",
  "applies_to": "all",
  "priority": 0
}
'
{
  "_links": {
    "kyc": {
      "description": "Submit KYC information",
      "href": "/v0/user/me/kyc",
      "method": "PUT"
    },
    "self": {
      "href": "/v0/user/me",
      "method": "GET"
    },
    "wallets": {
      "href": "/v0/wallets",
      "method": "GET"
    }
  }
}

Headers

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 external_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