API referenceSegments
Rename or replace a segment's filter
PATCH
Fields omitted from the body keep their current value; a replacement filter is re-validated.
bearerAuthheader
AuthorizationBearer <token>API key sent as Authorization: Bearer <key>. Looked up by SHA-256
hash (email_core::sha256_hex) against api_keys.hash; revoked
keys and keys belonging to a suspended tenant are rejected. See the
top-level Authentication section for permission levels.
id*stringapplication/json- body
name?stringfilter?email_core::segment::SegmentFilter, validated by parse_filter and compiled to a parameterized SQL predicate by compile_filter. At most 25 conditions; all conditions are ANDed (there is no OR).
Updated.
application/json- response
id?stringname?stringfilter?email_core::segment::SegmentFilter, validated by parse_filter and compiled to a parameterized SQL predicate by compile_filter. At most 25 conditions; all conditions are ANDed (there is no OR).
created_at?integerFormat
int64updated_at?integerFormat
int64curl -X PATCH "https://example.com/v1/segments/string" \ -H "Content-Type: application/json" \ -d '{}'{ "id": "string", "name": "string", "filter": { "match": "all", "conditions": [ { "field": "string", "op": "eq", "value": "string" } ] }, "created_at": 0, "updated_at": 0}