Batch evaluate an Unleash context against a set of environments and projects.
Use the provided context, environments, and projects to evaluate toggles on this Unleash instance. You can use comma-separated values to provide multiple values to each context field. Returns a combinatorial list of all toggles that match the parameters and what they evaluate to. The response also contains the input parameters that were provided.
Request body
Example request
{
"environments": [
"development",
"production"
],
"projects": [
"my-project"
],
"context": {
"appName": "My cool application.",
"currentTime": "2022-07-05T12:56:41+02:00",
"properties": {
"customContextField": "this is one!",
"otherCustomField": "3"
},
"remoteAddress": "192.168.1.1",
"sessionId": "b65e7b23-fec0-4814-a129-0e9861ef18fc",
"userId": "username@provider.com"
}
}Response
advancedPlaygroundResponseSchema
Example response
{
"input": {
"environments": [
"development",
"production"
],
"projects": [
"my-project"
],
"context": {
"appName": "My cool application.",
"currentTime": "2022-07-05T12:56:41+02:00",
"properties": {
"customContextField": "this is one!",
"otherCustomField": "3"
},
"remoteAddress": "192.168.1.1",
"sessionId": "b65e7b23-fec0-4814-a129-0e9861ef18fc",
"userId": "username@provider.com"
}
},
"features": [
{
"name": "my-feature",
"projectId": "my-project"
}
]
}Changes
Changed in 2 of the 7 revisions of this API.6
- ●
added the new
SEMVER_GTEenum value to the//////////response property for the response statusresponse-property-enum-value-added
- ●
added the new
SEMVER_GTEenum value to the////////////response property for the response statusresponse-property-enum-value-added
- ●
added the new
SEMVER_LTEenum value to the//////////response property for the response statusresponse-property-enum-value-added
- ●
added the new
SEMVER_LTEenum value to the////////////response property for the response statusresponse-property-enum-value-added
- ●
- ●
added the new
REGEXenum value to the//////////response property for the response statusresponse-property-enum-value-added
- ●
added the new
REGEXenum value to the////////////response property for the response statusresponse-property-enum-value-added
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●