Skip to main content
POST
/
v1
/
clientEvaluationContextSchema:derive
Deriveevaluationcontextschema Client
curl --request POST \
  --url https://flags.eu.confidence.dev/v1/clientEvaluationContextSchema:derive \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "clients": [
    "<string>"
  ],
  "mustMatchSchema": {
    "schema": [
      {}
    ]
  }
}
'
{
  "clientSchema": [
    {
      "client": "<string>",
      "schema": {
        "schema": [
          {}
        ]
      }
    }
  ],
  "mergedSchema": {
    "schema": [
      {}
    ]
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
clients
string[]

The list of clients to infer the schema for. If empty, returns schema for all clients that the caller has permissions to.

mustMatchSchema
object

Filter the available options by finding only options that can be used in combination with this existing schema. For instance if field country is selected, only find schemas where country exists.

Response

200 - application/json

OK

clientSchema
object[]

The client specific derived schemas.

mergedSchema
object

The schema created by merging the schema from all clients.