Session Replays
Save Replay Summary Rules
PUT
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
mode*stringValue in
"off""all""filtered"sampleRate*number|dailyLimit*number||nullconditionSets*array<>people*array<>ReplaySummaryRulesResponse
application/json- response
mode*stringValue in
"off""all""filtered"sampleRate*number|dailyLimit*number||nullconditionSets*array<>people*array<>automaticToday*number|costPerSummary*|nullupdatedAt*string|nullcurl -X PUT 'https://api.faststats.dev/v0/projects/string/replays/summary-rules' \
-H 'Content-Type: application/json' \
-d '{
"mode": "off",
"sampleRate": 0,
"dailyLimit": 0,
"conditionSets": [
{
"conditions": [
{
"field": "country",
"operator": "is",
"values": [
"string"
],
"traitKey": "string"
}
]
}
],
"people": [
{
"personId": "string",
"effect": "include"
}
]
}'Example Response
{
"mode": "off",
"sampleRate": 0,
"dailyLimit": 0,
"conditionSets": [
{
"conditions": [
{
"field": "country",
"operator": "is",
"values": [
"string"
],
"traitKey": "string"
}
]
}
],
"people": [
{
"personId": "string",
"effect": "include",
"externalId": "string",
"email": "string",
"name": "string",
"avatarUrl": "string"
}
],
"automaticToday": 0,
"costPerSummary": {
"avgUsd": 0,
"basedOn": 0,
"scope": "project"
},
"updatedAt": "string"
}