Skip to main content
PATCH
/
v0
/
user
/
rules
/
{rule_external_id}
Update Rule
curl --request PATCH \
  --url https://api.example.com/v0/user/rules/{rule_external_id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "rule_prompt": "<string>",
  "applies_to": "<string>",
  "priority": 500
}
'
{
  "_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

Path Parameters

rule_external_id
string
required

Body

application/json
name
string | null
Required string length: 1 - 255
rule_prompt
string | null
Minimum string length: 1
applies_to
string | null
priority
integer | null
Required range: 0 <= x <= 1000

Response

Rule updated successfully

HAL-style hypermedia links for navigation and available actions.

rule
RuleData · object
required