Evaluation
Batch Evaluation
POST
/evaluate/v1/batch
{
"requestDurationMillis": "number",
"requestId": "string",
"responses": [
{
"booleanResponse": {
"enabled": "boolean",
"reason": "UNKNOWN_EVALUATION_REASON",
"requestDurationMillis": "number",
"requestId": "string",
"timestamp": "string"
},
"errorResponse": {
"flagKey": "string",
"namespaceKey": "string",
"reason": "UNKNOWN_ERROR_EVALUATION_REASON"
},
"type": "VARIANT_EVALUATION_RESPONSE_TYPE",
"variantResponse": {
"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/batch \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"requests": [
{
"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
requestId
string
requestsrequired
object[]
Response
200 - application/json
requestDurationMillisrequired
number
requestIdrequired
string
responsesrequired
object[]
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>"
}
]
}'
{
"requestDurationMillis": "number",
"requestId": "string",
"responses": [
{
"booleanResponse": {
"enabled": "boolean",
"reason": "UNKNOWN_EVALUATION_REASON",
"requestDurationMillis": "number",
"requestId": "string",
"timestamp": "string"
},
"errorResponse": {
"flagKey": "string",
"namespaceKey": "string",
"reason": "UNKNOWN_ERROR_EVALUATION_REASON"
},
"type": "VARIANT_EVALUATION_RESPONSE_TYPE",
"variantResponse": {
"match": "boolean",
"reason": "UNKNOWN_EVALUATION_REASON",
"requestDurationMillis": "number",
"requestId": "string",
"segmentKeys": [
"string"
],
"timestamp": "string",
"variantAttachment": "string",
"variantKey": "string"
}
}
]
}