---
title: "Update a segment"
method: PATCH
path: "/v3/segments/{id}"
tags: ["Segments"]
---

# Update a segment

`PATCH /v3/segments/{id}`

Updates the specified segment by setting the values of the parameters passed. Any parameters not provided will be left unchanged.

## Path parameters

- `id` string, required

## Request body

- SegmentUpdateRequestModel
  - `name` string, nullable — Name of the segment.
  - `resource` string, nullable — Name of the resource.
  - `filters` SegmentFilterRequestModel[], nullable — Filter for the segment.
    - `property` string, required — Name of the property.
    - `operator` string, required — Name of the operator.
    - `value` string, required — Value of the property.

## Response `200`

OK

- SegmentDto
  - `id` string, required
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required
  - `name` string, required
  - `resource` string, required
  - `filters` SegmentFilterDto[], required
    - `property` string, required
    - `operator` string, required
    - `value` string, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `429` — Too Many Requests
- `500` — Server Error

---

[API](https://skmtc.net/cryptlex/apis/cryptlex-web-api.md) · [All operations](https://skmtc.net/cryptlex/apis/cryptlex-web-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cryptlex/cryptlex-web-api/versions/ec1259c12475/schema)
