Skip to main content

Validates if a segment name exists

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

Authorization

name: Authorizationtype: apiKeyin: header

Uses the name provided in the body of the request to validate if the given name exists or not

Request

Body

required

nameSchema

  • name string required

    The name of the represented object.

Responses

This response has no body.

Authorization

name: Authorizationtype: apiKeyin: header

Request

Base URL
<your-unleash-url>
apiKey
Body required
{
"name": "betaUser"
}
curl / cURL
curl -L -X POST '<your-unleash-url>/api/admin/segments/validate' \
-H 'Content-Type: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"name": "betaUser"
}'