🎉 New in Flipt Pro: Integrated secrets management with HashiCorp Vault, AWS Secrets Manager, GCP Secret Manager, and Azure Key Vault. Learn more.
curl --request POST \
--url https://try.flipt.io/api/v1/namespaces/default/flags/{flagKey}/rules \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"rank": 1,
"segmentKey": "<segmentkey>"
}'
{
"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"
}curl --request POST \
--url https://try.flipt.io/api/v1/namespaces/default/flags/{flagKey}/rules \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"rank": 1,
"segmentKey": "<segmentkey>"
}'
{
"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"
}Documentation Index
Fetch the complete documentation index at: https://docs.flipt.io/llms.txt
Use this file to discover all available pages before exploring further.
curl --request POST \
--url https://try.flipt.io/api/v1/namespaces/default/flags/{flagKey}/rules \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"rank": 1,
"segmentKey": "<segmentkey>"
}'
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
OK
Show child attributes
OR_SEGMENT_OPERATOR, AND_SEGMENT_OPERATOR Was this page helpful?