# Update a saved contact segment

**PATCH** `/segments/{segmentId}`

Replaces any supplied filter atomically. The If-Match header must contain the current segment ETag.

Authentication: bearerAuth
Required scopes: `segment:update`
Allowed roles: `owner`, `admin`
Authorization: Update a saved contact segment.

## Request body

- `application/json`: `UpdateSegmentRequest` required.

## Responses

- `200`: Segment updated
- `412`: The supplied ETag is stale.
- `428`: If-Match is required.
- `default`: Error
