Segments
Snapshot Segment
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*stringsegmentId*stringapplication/json- body
key*stringname*stringdescription?string|null|nullSegmentRecord
application/json- response
id*stringprojectId*stringkey*stringname*stringdescription*string|nulltype*stringValue in
"dynamic""static"definition*members*array<>flagCompatible*booleanusedBy*createdAt*stringupdatedAt*stringExample Request
curl -X POST 'https://api.faststats.dev/v0/projects/string/segments/string/snapshot' \ -H 'Content-Type: application/json' \ -d '{ "key": "string", "name": "string"}'Example Response
{ "id": "string", "projectId": "string", "key": "string", "name": "string", "description": "string", "type": "dynamic", "definition": { "type": "group", "match": "all", "negate": true, "children": [ {} ] }, "members": [ { "kind": "identifier", "value": "string", "excluded": true } ], "flagCompatible": true, "usedBy": { "segments": [ "string" ], "flags": [ "string" ] }, "createdAt": "string", "updatedAt": "string"}