Skip to main content

Validate a feature toggle name.

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

Authorization

name: Authorizationtype: apiKeyin: header

Validates a feature toggle 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

Body

required

validateFeatureSchema

  • name string required

    The feature name to validate.

  • projectId string nullable

    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.

Responses

This response has no body.

Authorization

name: Authorizationtype: apiKeyin: header

Request

Base URL
<your-unleash-url>
apiKey
Body required
{
"name": "my-feature-3",
"projectId": "project-y"
}
curl / cURL
curl -L -X POST '<your-unleash-url>/api/admin/features/validate' \
-H 'Content-Type: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"name": "my-feature-3",
"projectId": "project-y"
}'