Rules
List Rules
Overview
OpenFeature Evaluation
Namespaces
Rollouts
Rules
List Rules
GET
/
api
/
v1
/
namespaces
/
{namespaceKey}
/
flags
/
{flagKey}
/
rules
curl --request GET \
--url https://try.flipt.io/api/v1/namespaces/default/flags/{flagKey}/rules \
--header 'Accept: application/json'
{
"rules": [
{
"id": "<string>",
"flagKey": "<string>",
"segmentKey": "<string>",
"distributions": [
{
"id": "<string>",
"ruleId": "<string>",
"variantId": "<string>",
"rollout": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"rank": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"namespaceKey": "<string>",
"segmentKeys": [
"<string>"
],
"segmentOperator": "OR_SEGMENT_OPERATOR"
}
],
"nextPageToken": "<string>",
"totalCount": 123
}
curl --request GET \
--url https://try.flipt.io/api/v1/namespaces/default/flags/{flagKey}/rules \
--header 'Accept: application/json'
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Response
200 - application/json
OK
Available options:
OR_SEGMENT_OPERATOR
, AND_SEGMENT_OPERATOR
Was this page helpful?
curl --request GET \
--url https://try.flipt.io/api/v1/namespaces/default/flags/{flagKey}/rules \
--header 'Accept: application/json'
{
"rules": [
{
"id": "<string>",
"flagKey": "<string>",
"segmentKey": "<string>",
"distributions": [
{
"id": "<string>",
"ruleId": "<string>",
"variantId": "<string>",
"rollout": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"rank": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"namespaceKey": "<string>",
"segmentKeys": [
"<string>"
],
"segmentOperator": "OR_SEGMENT_OPERATOR"
}
],
"nextPageToken": "<string>",
"totalCount": 123
}