---
title: "Validates if a segment name exists"
method: POST
path: "/api/admin/segments/validate"
tags: ["Segments"]
---

# Validates if a segment name exists

`POST /api/admin/segments/validate`

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

## Request body

- NameSchema — An object with a name
  - `name` string, required — The name of the represented object.

## Response `204`

This response has no body.

## Other responses

- `400` — The request data does not match what we expect.
- `401` — Authorization information is missing or invalid. Provide a valid API token as the `authorization` header, e.g. `authorization:*.*.my-admin-token`.
- `409` — The provided resource can not be created or updated because it would conflict with the current state of the resource or with an already existing resource, respectively.
- `415` — The operation does not support request payloads of the provided type. Please ensure that you're using one of the listed payload types and that you have specified the right content type in the "content-type" header.

---

[API](https://skmtc.net/unleash/apis/unleash-api-3.md) · [All operations](https://skmtc.net/unleash/apis/unleash-api-3/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/unleash/unleash-api-3/revisions/b2c3116e633e/schema)
