---
title: "Update a segment"
method: PATCH
path: "/segments/{id}"
---

# Update a segment

`PATCH /segments/{id}`

## Request

- Base URL: `https://sendinel.ai/api/v1`
- URL: `https://sendinel.ai/api/v1/segments/{id}`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `https://sendinel.ai/oauth/authorize`, token URL `https://sendinel.ai/oauth/token`)

## Path parameters

- `id` string, uuid, required

## Request body

- Segment
  - `id` string, uuid, required
  - `name` string, required
  - `description` string, nullable
  - `rules` SegmentRule, required

## Response `200`

Segment updated

---

[API](https://skmtc.dev/sendinel/apis/sendinel-api.md) · [All operations](https://skmtc.dev/sendinel/apis/sendinel-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sendinel/apis/sendinel-api/revisions/20b2c6d5616d?raw)
