Feature Flags

Upsert Feature Flag Segment

POST
/v0/project/{idOrSlug}/feature-flag-segments

Authorization

apiKeyAuth
x-api-key<token>

FastStats API key. Pass it in the x-api-key header or as a Bearer token in the Authorization header.

In: header

Path Parameters

idOrSlug*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v0/project/string/feature-flag-segments" \  -H "Content-Type: application/json" \  -d '{    "key": "string",    "name": "string",    "matchMode": "all",    "conditions": [      {        "attribute": "string",        "operator": "equals",        "values": [          "string"        ]      }    ],    "members": [      {        "kind": "identifier",        "value": "string",        "excluded": true      }    ]  }'
{  "id": "string",  "projectId": "string",  "key": "string",  "name": "string",  "description": "string",  "matchMode": "all",  "conditions": [    {      "attribute": "string",      "operator": "equals",      "values": [        "string"      ]    }  ],  "members": [    {      "kind": "identifier",      "value": "string",      "excluded": true    }  ],  "createdAt": "string",  "updatedAt": "string"}