POST
/
api
/
v1
/
namespaces
/
{namespaceKey}
/
flags
/
{flagKey}
/
rules

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

Body

application/json
rank
integer
required
flagKey
string
segmentKey
string
namespaceKey
string
segmentKeys
string[]
segmentOperator
enum<string>
Available options:
OR_SEGMENT_OPERATOR,
AND_SEGMENT_OPERATOR

Response

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