Kaiten
O F R E P Core

OFREP bulk flag evaluation contract

OFREP bulk evaluation request. The endpoint is called by the client providers to evaluate all flags at once.

POST
/ofrep/v1/evaluate/flags

Header Parameters

If-None-Match?string

The request will be processed only if ETag doesn't match any of the values listed.

Request Body

application/json

EvaluateVariant multiple flags in one request

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://demo.kaiten.sh/ofrep/v1/evaluate/flags" \  -H "Content-Type: application/json" \  -d '{}'
{
  "flags": [
    {
      "key": "string",
      "metadata": {
        "property1": null,
        "property2": null
      },
      "reason": "STATIC",
      "value": null,
      "variant": "string"
    }
  ]
}
Empty
{
  "errorCode": "string",
  "errorDetails": "string"
}
Empty
Empty
Empty
{
  "errorCode": "string",
  "errorDetails": "string"
}