Replaces all fields of a segment. All fields are required.
Bearer authentication using the project Secret Key (prefixed with sk_, or test_sk_ for sandbox). All v4 public endpoints require the Secret Key — see Authentication. Never expose the Secret Key in client-side code.
Segment identifier.
Updated segment
"segment"
Segment identifier.
"premium-users"
Canonical API path.
"/v4/segments/premium-users"
Display name.
"Premium Users"
Whether this is a predefined system segment (read-only).
Targeting rules (opaque to gateway).
ISO 8601 creation timestamp.
"2025-09-15T12:30:00Z"
ISO 8601 last update timestamp.
"2025-11-03T10:26:40Z"