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

# Update a segment

`PATCH /v1/donor_segments/{id}`

## Path parameters

- `id` string, uuid, required

## Request body

- DonorSegment
  - `id` string, uuid
  - `name` string, required
  - `description` string, nullable
  - `entity_type` string
  - `filter_criteria` object
  - `donor_count` integer, nullable
  - `last_calculated_at` string, date-time, nullable
  - `created_at` string, date-time

## Response `200`

Updated

---

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