Evaluation
Variant Evaluation
POST
/evaluate/v1/variant
{
"match": "boolean",
"reason": "UNKNOWN_EVALUATION_REASON",
"requestDurationMillis": "number",
"requestId": "string",
"segmentKeys": [
"string"
],
"timestamp": "string",
"variantAttachment": "string",
"variantKey": "string"
}
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
Authorizationheaderrequired
string
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
contextrequired
object
entityIdrequired
string
flagKeyrequired
string
namespaceKeyrequired
string
requestId
string
Response
200 - application/json
matchrequired
boolean
reasonrequired
enum<string>
Available options:
UNKNOWN_EVALUATION_REASON
, FLAG_DISABLED_EVALUATION_REASON
, MATCH_EVALUATION_REASON
, DEFAULT_EVALUATION_REASON
requestDurationMillisrequired
number
requestIdrequired
string
segmentKeysrequired
string[]
timestamprequired
string
variantAttachmentrequired
string
variantKeyrequired
string
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>"
}'
{
"match": "boolean",
"reason": "UNKNOWN_EVALUATION_REASON",
"requestDurationMillis": "number",
"requestId": "string",
"segmentKeys": [
"string"
],
"timestamp": "string",
"variantAttachment": "string",
"variantKey": "string"
}