Retentions
Update Retention
PATCH
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*stringretentionId*stringapplication/json- body
name?|nulldescription?|null|nulldefinition?|nulldisplay?|nulldashboardId?string|null|nullposition?|null|nullRetentionRecord
application/json- response
id*stringprojectId*stringname*stringdescription*string|nulldefinition*display*dashboardId*string|nullposition*|nullcreatedAt*stringupdatedAt*stringcurl -X PATCH 'https://api.faststats.dev/v0/projects/string/retentions/string' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "id": "string", "projectId": "string", "name": "string", "description": "string", "definition": { "granularity": "day", "cohortType": "first", "returnType": "exact", "startEvent": "string", "returnEvent": "string", "filters": [ { "field": "string", "operator": "is", "value": "string" } ] }, "display": { "view": "curve" }, "dashboardId": "string", "position": { "x": 0, "y": 0, "w": 0, "h": 0 }, "createdAt": "string", "updatedAt": "string"}