---
title: "Update segment for that application"
method: PUT
path: "/applications/{application}/segments/{segmentId}"
tags: ["segments"]
---

# Update segment for that application

`PUT /applications/{application}/segments/{segmentId}`

## 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 updated segment

- 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)
