Skip to main content

Validate a feature flag name.

POST 

<your-unleash-url>/api/admin/features/validate

Validates a feature flag name: checks whether the name is URL-friendly and whether a feature with the given name already exists. Returns 200 if the feature name is compliant and unused.

Request

Bodyrequired

validateFeatureSchema

    namestringrequired

    The feature name to validate.

    Example: my-feature-3
    projectIdstringnullable

    The id of the project that the feature flag will belong to. If the target project has a feature naming pattern defined, the name will be validated against that pattern.

    Example: project-y

Responses

This response has no body.

Authorization: Authorization

name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
curl -L '<your-unleash-url>/api/admin/features/validate' \
-H 'Content-Type: application/json' \
-H 'Authorization: <Authorization>' \
-d '{
"name": "my-feature-3",
"projectId": "project-y"
}'
Request Collapse all
Base URL
<your-unleash-url>
Auth
Body required
{
  "name": "my-feature-3",
  "projectId": "project-y"
}
ResponseClear

Click the Send API Request button above and see the response here!