Evaluation
Batch Evaluation
Overview
OpenFeature Evaluation
Namespaces
Rollouts
Evaluation
Batch Evaluation
POST
/
evaluate
/
v1
/
batch
curl --request POST \
--url https://try.flipt.io/evaluate/v1/batch \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"requests": [
{
"context": {},
"entityId": "<entityid>",
"flagKey": "<flagkey>",
"namespaceKey": "<namespacekey>"
}
]
}'
{
"requestId": "<string>",
"responses": [
{
"type": "VARIANT_EVALUATION_RESPONSE_TYPE",
"booleanResponse": {
"enabled": true,
"reason": "UNKNOWN_EVALUATION_REASON",
"requestId": "<string>",
"requestDurationMillis": 123,
"timestamp": "2023-11-07T05:31:56Z",
"flagKey": "<string>"
},
"variantResponse": {
"match": true,
"segmentKeys": [
"<string>"
],
"reason": "UNKNOWN_EVALUATION_REASON",
"variantKey": "<string>",
"variantAttachment": "<string>",
"requestId": "<string>",
"requestDurationMillis": 123,
"timestamp": "2023-11-07T05:31:56Z",
"flagKey": "<string>"
},
"errorResponse": {
"flagKey": "<string>",
"namespaceKey": "<string>",
"reason": "UNKNOWN_ERROR_EVALUATION_REASON"
}
}
],
"requestDurationMillis": 123
}
curl --request POST \
--url https://try.flipt.io/evaluate/v1/batch \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"requests": [
{
"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
OK
Available options:
VARIANT_EVALUATION_RESPONSE_TYPE
, BOOLEAN_EVALUATION_RESPONSE_TYPE
, ERROR_EVALUATION_RESPONSE_TYPE
Available options:
UNKNOWN_EVALUATION_REASON
, FLAG_DISABLED_EVALUATION_REASON
, MATCH_EVALUATION_REASON
, DEFAULT_EVALUATION_REASON
Available options:
UNKNOWN_EVALUATION_REASON
, FLAG_DISABLED_EVALUATION_REASON
, MATCH_EVALUATION_REASON
, DEFAULT_EVALUATION_REASON
Was this page helpful?
curl --request POST \
--url https://try.flipt.io/evaluate/v1/batch \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"requests": [
{
"context": {},
"entityId": "<entityid>",
"flagKey": "<flagkey>",
"namespaceKey": "<namespacekey>"
}
]
}'
{
"requestId": "<string>",
"responses": [
{
"type": "VARIANT_EVALUATION_RESPONSE_TYPE",
"booleanResponse": {
"enabled": true,
"reason": "UNKNOWN_EVALUATION_REASON",
"requestId": "<string>",
"requestDurationMillis": 123,
"timestamp": "2023-11-07T05:31:56Z",
"flagKey": "<string>"
},
"variantResponse": {
"match": true,
"segmentKeys": [
"<string>"
],
"reason": "UNKNOWN_EVALUATION_REASON",
"variantKey": "<string>",
"variantAttachment": "<string>",
"requestId": "<string>",
"requestDurationMillis": 123,
"timestamp": "2023-11-07T05:31:56Z",
"flagKey": "<string>"
},
"errorResponse": {
"flagKey": "<string>",
"namespaceKey": "<string>",
"reason": "UNKNOWN_ERROR_EVALUATION_REASON"
}
}
],
"requestDurationMillis": 123
}