Skip to main content
PATCH
Update a contact segment
Requires segments:write. Supply at least one of name, description, or definition. Omitted fields remain unchanged. A supplied definition replaces all filter rules; null matches all contacts. Filter changes recalculate membership in the background. See contact segment guidance for filter examples and membership timing.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

segment_id
string<uuid>
required
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$

Body

application/json
name
string
description
string | null
definition
object | null

Response

Default Response

id
string
required
name
string
required
description
string | null
required
definition
object | null
required
created_at
string | null
required

ISO 8601 timestamp of when the segment was created

updated_at
string | null
required

ISO 8601 timestamp of when the segment was last updated