GET
/
api
/
v1
/
namespaces
/
{namespaceKey}
/
flags
/
{flagKey}
/
rules
/
{id}
curl --url https://try.flipt.io/api/v1/namespaces/default/flags/{flagKey}/rules/{id} \
  --header 'Accept: application/json'
{
  "createdAt": "2023-11-07T05:31:56Z",
  "distributions": [
    {
      "createdAt": "2023-11-07T05:31:56Z",
      "id": "<string>",
      "rollout": 123,
      "ruleId": "<string>",
      "updatedAt": "2023-11-07T05:31:56Z",
      "variantId": "<string>"
    }
  ],
  "flagKey": "<string>",
  "id": "<string>",
  "namespaceKey": "<string>",
  "rank": 123,
  "segmentKey": "<string>",
  "segmentKeys": [
    "<string>"
  ],
  "segmentOperator": "OR_SEGMENT_OPERATOR",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
headerrequired

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

Path Parameters

namespaceKey
string
required
flagKey
string
required
id
string
required

Query Parameters

reference
string

Response

200 - application/json
createdAt
string
required
distributions
object[]
required
flagKey
string
required
id
string
required
namespaceKey
string
required
rank
integer
required
segmentKey
string
required
segmentKeys
string[]
segmentOperator
enum<string>
required
Available options:
OR_SEGMENT_OPERATOR,
AND_SEGMENT_OPERATOR
updatedAt
string
required