List all rules of the flag. Rules are returned in the same order as they are evaluated.
cURL
curl --request GET \ --url https://flags.eu.confidence.dev/v1/flags/{flag}/rules \ --header 'Authorization: Bearer <token>'
{ "rules": [ { "segment": "<string>", "assignmentSpec": {}, "usageMetadata": {}, "enabled": true, "createTime": {}, "updateTime": {}, "creator": "<string>", "updater": "<string>", "name": "<string>", "description": "<string>", "targetingKeySelector": "<string>", "environments": [ "<string>" ], "labels": [ {} ], "materializationSpec": {} } ], "nextPageToken": "<string>" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The maximum number of rules to fetch.
Token used for pagination.
OK
The list of rules.
Show child attributes
A token that can be used to fetch more rules, empty if no more rules are available.
Was this page helpful?