Segments
List Segments
Segments
List Segments
GET
/
api
/
v1
/
namespaces
/
{namespaceKey}
/
segments
curl --url https://try.flipt.io/api/v1/namespaces/default/segments \
--header 'Accept: application/json'
{
"segments": [
{
"namespaceKey": "<string>",
"key": "<string>",
"name": "<string>",
"description": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"constraints": [
{
"id": "<string>",
"namespaceKey": "<string>",
"segmentKey": "<string>",
"type": "UNKNOWN_COMPARISON_TYPE",
"property": "<string>",
"operator": "<string>",
"value": "<string>",
"description": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"matchType": "ALL_MATCH_TYPE"
}
],
"nextPageToken": "<string>",
"totalCount": 123
}
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
namespaceKey
string
requiredQuery Parameters
limit
integer
offset
integer
pageToken
string
reference
string
Response
200 - application/json
segments
object[]
requiredsegments.namespaceKey
string
requiredsegments.key
string
requiredsegments.name
string
requiredsegments.description
string
requiredsegments.createdAt
string
requiredsegments.updatedAt
string
requiredsegments.constraints
object[]
requiredsegments.constraints.id
string
requiredsegments.constraints.namespaceKey
string
requiredsegments.constraints.segmentKey
string
requiredsegments.constraints.type
enum<string>
requiredThe default is UNKNOWN_COMPARISON_TYPE
Available options:
UNKNOWN_COMPARISON_TYPE
, STRING_COMPARISON_TYPE
, NUMBER_COMPARISON_TYPE
, BOOLEAN_COMPARISON_TYPE
, DATETIME_COMPARISON_TYPE
segments.constraints.property
string
requiredsegments.constraints.operator
string
requiredsegments.constraints.value
string
requiredsegments.constraints.description
string
requiredsegments.constraints.createdAt
string
requiredsegments.constraints.updatedAt
string
requiredsegments.matchType
enum<string>
requiredAvailable options:
ALL_MATCH_TYPE
, ANY_MATCH_TYPE
nextPageToken
string
requiredtotalCount
integer
requiredWas this page helpful?
curl --url https://try.flipt.io/api/v1/namespaces/default/segments \
--header 'Accept: application/json'
{
"segments": [
{
"namespaceKey": "<string>",
"key": "<string>",
"name": "<string>",
"description": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"constraints": [
{
"id": "<string>",
"namespaceKey": "<string>",
"segmentKey": "<string>",
"type": "UNKNOWN_COMPARISON_TYPE",
"property": "<string>",
"operator": "<string>",
"value": "<string>",
"description": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"matchType": "ALL_MATCH_TYPE"
}
],
"nextPageToken": "<string>",
"totalCount": 123
}