---
title: "Create a new segment for that application"
method: POST
path: "/applications/{application}/segments"
tags: ["segments"]
---

# Create a new segment for that application

`POST /applications/{application}/segments`

## Request body

- SegmentType
  - `name` string — The name of the segment
  - `expression` string — The expression assigned to the segment
  - `id` number — Identifier of the segment

## Response `200`

The segment with the assigned id

- SegmentType
  - `name` string — The name of the segment
  - `expression` string — The expression assigned to the segment
  - `id` number — Identifier of the segment

## Other responses

- `400` — Malformed request
- `404` — The application does not exist
- `default` — Unexpected error

---

[API](https://skmtc.net/gameanalytics/apis/datatiger-management-api.md) · [All operations](https://skmtc.net/gameanalytics/apis/datatiger-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gameanalytics/datatiger-management-api/versions/20a4f732a0b7/schema)
