Skip to main content
POST
/
api
/
custom-rules
/
test
Test Custom Rule
curl --request POST \
  --url https://api.example.com/api/custom-rules/test \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "pattern": "<string>",
  "sample": "<string>",
  "flags": []
}
'
{
  "matches": [],
  "count": 0
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-API-Key
string | null

Cookies

antidote_session
string | null

Body

application/json
pattern
string
required
sample
string
required
flags
string[]

Response

Successful Response

matches
CustomRuleTestMatch · object[]
count
integer
default:0