Skip to main content

Validates if a segment name exists

POST 

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

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

Request

Bodyrequired

nameSchema

    namestringrequired

    The name of the represented object.

    Example: betaUser

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/segments/validate' \
-H 'Content-Type: application/json' \
-H 'Authorization: <Authorization>' \
-d '{
"name": "betaUser"
}'
Request Collapse all
Base URL
<your-unleash-url>
Auth
Body required
{
  "name": "betaUser"
}
ResponseClear

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