Features
Validate constraint
Changed onValidates a constraint definition. Checks whether the context field exists and whether the applied configuration is valid. Additional properties are not allowed on data objects that you send to this endpoint.
post/api/admin/constraints/validate
Request
- Base URLhttps://app.unleash-instance.example.com
- URLhttps://app.unleash-instance.example.com/api/admin/constraints/validate
- Auth
- API key in header Authorization
- or HTTP bearer
Request body
Example request
{
"contextName": "appName",
"operator": "IN",
"values": [
"my-app",
"my-other-app"
],
"value": "my-app"
}Response
The constraint is valid
Changes
- breaking
the
request property's minLength was increased from0to1 - info
added the new
SEMVER_GTEenum value to the request property - info
added the new
SEMVER_LTEenum value to the request property
- breaking
- info
added the new
REGEXenum value to the request property
- info