Evaluation
Variant Evaluation
POST
/
evaluate
/
v1
/
variant
Copy
Ask AI
curl --request POST \
--url https://try.flipt.io/evaluate/v1/namespaces/default/variant \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"context": {},
"entityId": "<entityid>",
"flagKey": "<flagkey>",
"namespaceKey": "<namespacekey>"
}'
Copy
Ask AI
{
"requestId": "<string>",
"match": true,
"flagKey": "<string>",
"segmentKeys": [
"<string>"
],
"variantKey": "<string>",
"variantAttachment": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"requestDurationMillis": 123,
"reason": "UNKNOWN_EVALUATION_REASON"
}
Copy
Ask AI
curl --request POST \
--url https://try.flipt.io/evaluate/v1/namespaces/default/variant \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"context": {},
"entityId": "<entityid>",
"flagKey": "<flagkey>",
"namespaceKey": "<namespacekey>"
}'
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Response
200 - application/json
The response is of type object
.
Was this page helpful?
Copy
Ask AI
curl --request POST \
--url https://try.flipt.io/evaluate/v1/namespaces/default/variant \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"context": {},
"entityId": "<entityid>",
"flagKey": "<flagkey>",
"namespaceKey": "<namespacekey>"
}'
Copy
Ask AI
{
"requestId": "<string>",
"match": true,
"flagKey": "<string>",
"segmentKeys": [
"<string>"
],
"variantKey": "<string>",
"variantAttachment": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"requestDurationMillis": 123,
"reason": "UNKNOWN_EVALUATION_REASON"
}
Assistant
Responses are generated using AI and may contain mistakes.