POST

/api/v1/namespaces/{namespaceKey}/segments

{
  "constraints": [
    {
      "createdAt": "string",
      "description": "string",
      "id": "string",
      "namespaceKey": "string",
      "operator": "string",
      "property": "string",
      "segmentKey": "string",
      "type": "UNKNOWN_COMPARISON_TYPE",
      "updatedAt": "string",
      "value": "string"
    }
  ],
  "createdAt": "string",
  "description": "string",
  "key": "string",
  "matchType": "ALL_MATCH_TYPE",
  "name": "string",
  "namespaceKey": "string",
  "updatedAt": "string"
}
curl --request POST \
  --url https://try.flipt.io/api/v1/namespaces/default/segments \
  --header 'Content-Type: application/json' \
  --header 'Accept: application/json' \
  --data '{
  "description": "<description>",
  "key": "<key>",
  "matchType": "<matchtype>",
  "name": "<name>"
}'

Authorizations

Authorizationheaderrequired
string

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

namespaceKeyrequired
string

Body

application/json
descriptionrequired
string
keyrequired
string
matchTyperequired
enum<string>
Available options:
ALL_MATCH_TYPE,
ANY_MATCH_TYPE
namerequired
string

Response

200 - application/json
constraintsrequired
object[]
createdAtrequired
string
descriptionrequired
string
keyrequired
string
matchTyperequired
enum<string>
Available options:
ALL_MATCH_TYPE,
ANY_MATCH_TYPE
namerequired
string
namespaceKeyrequired
string
updatedAtrequired
string