Event Definitions
Preview Event Rule
POST
apiKeyAuthheader
x-api-key<token>FastStats API key. Pass it in the x-api-key header or as a Bearer token in the Authorization header.
idOrSlug*stringapplication/json- body
pattern*stringLength
1 <= length <= 200sentWith*|nullproperties*array<>Items
items <= 50unknownProperties*stringValue in
"allow""drop""reject"previousPattern?|nullEventRulePreview
application/json- response
sampled*number|rejected*number|reasons*array<>dropped*array<>examples*array<>curl -X POST 'https://api.faststats.dev/v0/projects/string/event-rules/preview' \
-H 'Content-Type: application/json' \
-d '{
"pattern": "string",
"sentWith": "api_key",
"properties": [
{
"key": "string",
"type": "string",
"required": true,
"values": [
"string"
],
"min": 0,
"max": 0
}
],
"unknownProperties": "allow"
}'Example Response
{
"sampled": 0,
"rejected": 0,
"reasons": [
{
"count": 0,
"message": "string"
}
],
"dropped": [
{
"count": 0,
"key": "string"
}
],
"examples": [
{
"eventName": "string",
"properties": "string",
"problems": [
"string"
]
}
]
}