Update Segment
PATCHhttps://a.klaviyo.com/api/segments/{id}
Update a segment with the given segment ID.
- Revision header
revision: 2026-07-15required- Scopes
segments:write- Rate limits
- Burst:
1/sSteady:15/mDaily:100/d
Path parameters
Query parameters
For more information please visit API overview
Headers
API endpoint revision (format: YYYY-MM-DD[.suffix])
2026-07-15
Request body
Content type: application/vnd.api+jsonrequired
Show 3 fields
Show 4 fields
Show 1 field
Show 1 field
Option 1:
ProfileHasGroupMembershipConditionOption 3:
RelativeDateOperatorBaseRelativeDateFilterOperators for relative date filters.
e.g. "in the last 10 days"
Units for relative date filters.
Enter a whole number. Until you do, the example request uses the example value.
Option 4:
RelativeDateRangeFilterOperators for relative date range filters.
e.g. "between 10 and 20 days ago"
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Units for relative date filters.
Option 3:
SegmentsProfileMetricConditionMeasurements for profile metrics.
Option 1:
StaticDateFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 2:
StaticDateRangeFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 3:
RelativeDateOperatorBaseRelativeDateFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 4:
RelativeAnniversaryDateFilterOperators for relative date filters.
e.g. "anniversary in the last 10 days"
Units for relative date filters.
Enter a whole number. Until you do, the example request uses the example value.
Option 5:
RelativeDateRangeFilterEnter valid JSON. Until you do, the example request uses the example value.
Show 2 fields
Option 8:
NumericOperatorNumericFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 4:
ProfileMarketingConsentConditionOption 1:
HasEmailMarketingConsentOption 2:
HasEmailMarketingSubscribedOption 2:
StatusDateFilterOption 1:
StaticDateFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 2:
StaticDateRangeFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 3:
RelativeDateOperatorBaseRelativeDateFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 4:
RelativeAnniversaryDateFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 5:
RelativeDateRangeFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 2:
NoEmailMarketingConsentOption 1:
NoEmailMarketingOption 1:
BounceDateFilterOption 1:
StaticDateFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 2:
StaticDateRangeFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 3:
RelativeDateOperatorBaseRelativeDateFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 4:
RelativeAnniversaryDateFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 5:
RelativeDateRangeFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 6:
CalendarDateFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 7:
AnniversaryDateFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 2:
ManualSuppressionDateFilterOption 1:
StaticDateFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 2:
StaticDateRangeFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 3:
RelativeDateOperatorBaseRelativeDateFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 4:
RelativeAnniversaryDateFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 5:
RelativeDateRangeFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 6:
CalendarDateFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 7:
AnniversaryDateFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 8:
IsSetExistenceFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 3:
InvalidEmailDateFilterOption 1:
StaticDateFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 2:
StaticDateRangeFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 3:
RelativeDateOperatorBaseRelativeDateFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 4:
RelativeAnniversaryDateFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 5:
RelativeDateRangeFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 6:
CalendarDateFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 7:
AnniversaryDateFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 8:
IsSetExistenceFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 3:
NoEmailMarketingNeverSubscribedOption 1:
BounceDateFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 2:
ManualSuppressionDateFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 3:
InvalidEmailDateFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 4:
NoEmailMarketingSubscribedOption 1:
BounceDateFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 2:
ManualSuppressionDateFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 3:
InvalidEmailDateFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 3:
HasSMSMarketingConsentShow 2 fields
Option 1:
StatusDateFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 2:
FormMethodFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 3:
ManualImportManualMethodFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 4:
ManualAddManualMethodFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 6:
InboundMessageMethodFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 7:
PreferencePageMethodFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 8:
SftpMethodFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 9:
ShopifyIntegrationMethodFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 4:
NoSMSMarketingConsentOption 1:
NoSMSMarketingOption 2:
NoSMSMarketingUnsubscribedOption 1:
StatusDateFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 2:
FormMethodFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 3:
ManualImportManualMethodFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 4:
ManualAddManualMethodFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 5:
ManualRemoveMethodFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 7:
CheckoutMethodFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 8:
InboundMessageMethodFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 9:
PreferencePageMethodFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 10:
SftpMethodFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 16:
ShopifyIntegrationMethodFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 3:
NoSMSMarketingNeverSubscribed
Option 5:
ProfilePostalCodeDistanceConditionUnits for profile postal code distance conditions.
Option 6:
ProfilePropertyConditionThe profile property to check. Use one of the well-known property names (e.g.
email,first_name) or, for custom profile properties, the formproperties['property name'].Option 1:
StringOperatorStringFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 2:
StringArrayOperatorStringArrayFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 3:
StringPhoneOperatorStringArrayFilterOperators for phone string array filters.
Example condition using this filter: { "type": "profile-property", "field": "phone", "filter": { "type": "string", "operator": "phone-country-code-in", "value": ["US", "GB"] } }
Option 4:
NumericOperatorNumericFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 5:
BooleanFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 6:
StaticDateFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 7:
StaticDateRangeFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 8:
RelativeDateOperatorBaseRelativeDateFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 9:
RelativeAnniversaryDateFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 10:
RelativeDateRangeFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 11:
CalendarDateFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 12:
AnniversaryDateFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 14:
ListLengthFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 15:
ExistenceOperatorExistenceFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 8:
ProfilePredictiveAnalyticsDateConditionDimension for date profile predictive analytics conditions.
Option 1:
StaticDateFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 2:
StaticDateRangeFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 3:
RelativeDateOperatorBaseRelativeDateFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 4:
RelativeAnniversaryDateFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 5:
RelativeDateRangeFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 6:
CalendarDateFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 7:
AnniversaryDateFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 10:
ProfilePredictiveAnalyticsStringConditionDimension for string profile predictive analytics conditions.
Option 11:
ProfilePredictiveAnalyticsChannelAffinityPriorityConditionPossible dimension for channel affinity criterion.
Possible channels in a channel affinity definition.
Option 12:
ProfilePredictiveAnalyticsChannelAffinityRankConditionPossible dimension for channel affinity criterion.
Possible channels in a channel affinity definition.
Option 13:
ProfileHasCustomObjectConditionShow 2 fields
Enter a whole number. Until you do, the example request uses the example value.
Option 1:
StringOperatorStringFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 2:
StringArrayOperatorStringArrayFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 3:
NumericOperatorNumericFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 4:
NumericRangeFilterOperators for numeric range filters.
Enter a whole number. Until you do, the example request uses the example value.
Enter a whole number. Until you do, the example request uses the example value.
Option 5:
BooleanFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 6:
StaticDateFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 7:
StaticDateRangeFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 8:
RelativeDateOperatorBaseRelativeDateFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 9:
RelativeAnniversaryDateFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 10:
RelativeDateRangeFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 11:
ListContainsOperatorListContainsFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 12:
ListLengthFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 13:
ExistenceOperatorExistenceFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 14:
ProfilePermissionsConditionOption 1:
ExplicitlyReachableOption 1:
EffectiveDateFilterOption 1:
StaticDateFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 2:
StaticDateRangeFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 3:
RelativeDateOperatorBaseRelativeDateFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 4:
RelativeAnniversaryDateFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 5:
RelativeDateRangeFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 6:
CalendarDateFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 7:
AnniversaryDateFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 2:
RecordedDateFilterOption 1:
StaticDateFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 2:
StaticDateRangeFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 3:
RelativeDateOperatorBaseRelativeDateFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 4:
RelativeAnniversaryDateFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 5:
RelativeDateRangeFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 6:
CalendarDateFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 7:
AnniversaryDateFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 2:
ImplicitlyReachableOption 3:
ImplicitlyOrExplicitlyReachableOption 4:
ExplicitlyUnreachableOption 1:
EffectiveDateFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 2:
RecordedDateFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 3:
MethodFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 4:
FormSubscribeFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 5:
ImplicitlyUnreachableOption 6:
ImplicitlyOrExplicitlyUnreachable
Possible channels for profile permissions criterion.
Option 15:
SegmentsProfileMetricFunnelConditionOption 1:
StaticDateRangeFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 2:
RelativeDateRangeFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 3:
RelativeDateOperatorBaseRelativeDateFilterEnter valid JSON. Until you do, the example request uses the example value.
Allowed completion window durations for funnel conditions (in seconds).
Set to false to deactivate the segment. When deactivating, this must be the only attribute in the request body. Deactivation cannot be combined with other updates. Marking a segment inactive will impact campaigns, flows, ad syncs, forms, helpdesk routing, and other features that reference this segment. Set to true to reactivate a deactivated segment.
Responses
200Success
Content type: application/vnd.api+json
Show 5 fields
Show 7 fields
A helpful name to label the segment
Show 1 field
Show 1 field
Option 1:
ProfileHasGroupMembershipConditionOption 3:
SegmentsProfileMetricConditionMeasurements for profile metrics.
Option 1:
StaticDateFilterOption 2:
StaticDateRangeFilterOption 3:
RelativeDateOperatorBaseRelativeDateFilterOption 5:
RelativeDateRangeFilter
Show 2 fields
Option 8:
NumericOperatorNumericFilter
Option 4:
ProfileMarketingConsentConditionOption 1:
HasEmailMarketingConsentOption 2:
HasEmailMarketingSubscribedOption 2:
StatusDateFilterOption 1:
StaticDateFilterOption 2:
StaticDateRangeFilterOption 3:
RelativeDateOperatorBaseRelativeDateFilterOption 4:
RelativeAnniversaryDateFilterOption 5:
RelativeDateRangeFilter
Option 2:
NoEmailMarketingConsentOption 1:
NoEmailMarketingOption 1:
BounceDateFilterOption 1:
StaticDateFilterOption 2:
StaticDateRangeFilterOption 3:
RelativeDateOperatorBaseRelativeDateFilterOption 4:
RelativeAnniversaryDateFilterOption 5:
RelativeDateRangeFilterOption 6:
CalendarDateFilterOption 7:
AnniversaryDateFilter
Option 2:
ManualSuppressionDateFilterOption 1:
StaticDateFilterOption 2:
StaticDateRangeFilterOption 3:
RelativeDateOperatorBaseRelativeDateFilterOption 4:
RelativeAnniversaryDateFilterOption 5:
RelativeDateRangeFilterOption 6:
CalendarDateFilterOption 7:
AnniversaryDateFilterOption 8:
IsSetExistenceFilter
Option 3:
InvalidEmailDateFilterOption 1:
StaticDateFilterOption 2:
StaticDateRangeFilterOption 3:
RelativeDateOperatorBaseRelativeDateFilterOption 4:
RelativeAnniversaryDateFilterOption 5:
RelativeDateRangeFilterOption 6:
CalendarDateFilterOption 7:
AnniversaryDateFilterOption 8:
IsSetExistenceFilter
Option 3:
HasSMSMarketingConsentShow 2 fields
Option 1:
StatusDateFilterOption 2:
FormMethodFilterOption 3:
ManualImportManualMethodFilterOption 4:
ManualAddManualMethodFilterOption 6:
InboundMessageMethodFilterOption 7:
PreferencePageMethodFilterOption 8:
SftpMethodFilterOption 9:
ShopifyIntegrationMethodFilter
Option 4:
NoSMSMarketingConsentOption 1:
NoSMSMarketingOption 2:
NoSMSMarketingUnsubscribedOption 1:
StatusDateFilterOption 2:
FormMethodFilterOption 3:
ManualImportManualMethodFilterOption 4:
ManualAddManualMethodFilterOption 5:
ManualRemoveMethodFilterOption 7:
CheckoutMethodFilterOption 8:
InboundMessageMethodFilterOption 9:
PreferencePageMethodFilterOption 10:
SftpMethodFilterOption 16:
ShopifyIntegrationMethodFilter
Option 3:
NoSMSMarketingNeverSubscribed
Option 5:
ProfilePostalCodeDistanceConditionUnits for profile postal code distance conditions.
Option 6:
ProfilePropertyConditionThe profile property to check. Use one of the well-known property names (e.g.
email,first_name) or, for custom profile properties, the formproperties['property name'].Option 1:
StringOperatorStringFilterOption 2:
StringArrayOperatorStringArrayFilterOption 3:
StringPhoneOperatorStringArrayFilterOperators for phone string array filters.
Example condition using this filter: { "type": "profile-property", "field": "phone", "filter": { "type": "string", "operator": "phone-country-code-in", "value": ["US", "GB"] } }
Option 4:
NumericOperatorNumericFilterOption 5:
BooleanFilterOption 6:
StaticDateFilterOption 7:
StaticDateRangeFilterOption 8:
RelativeDateOperatorBaseRelativeDateFilterOption 9:
RelativeAnniversaryDateFilterOption 10:
RelativeDateRangeFilterOption 11:
CalendarDateFilterOption 12:
AnniversaryDateFilterOption 14:
ListLengthFilterOption 15:
ExistenceOperatorExistenceFilter
Option 8:
ProfilePredictiveAnalyticsDateConditionDimension for date profile predictive analytics conditions.
Option 1:
StaticDateFilterOption 2:
StaticDateRangeFilterOption 3:
RelativeDateOperatorBaseRelativeDateFilterOption 4:
RelativeAnniversaryDateFilterOption 5:
RelativeDateRangeFilterOption 6:
CalendarDateFilterOption 7:
AnniversaryDateFilter
Option 10:
ProfilePredictiveAnalyticsStringConditionDimension for string profile predictive analytics conditions.
Option 11:
ProfilePredictiveAnalyticsChannelAffinityPriorityConditionPossible dimension for channel affinity criterion.
Possible channels in a channel affinity definition.
Option 12:
ProfilePredictiveAnalyticsChannelAffinityRankConditionPossible dimension for channel affinity criterion.
Possible channels in a channel affinity definition.
Option 13:
ProfileHasCustomObjectConditionShow 2 fields
Option 1:
StringOperatorStringFilterOption 2:
StringArrayOperatorStringArrayFilterOption 3:
NumericOperatorNumericFilterOption 5:
BooleanFilterOption 6:
StaticDateFilterOption 7:
StaticDateRangeFilterOption 8:
RelativeDateOperatorBaseRelativeDateFilterOption 9:
RelativeAnniversaryDateFilterOption 10:
RelativeDateRangeFilterOption 11:
ListContainsOperatorListContainsFilterOption 12:
ListLengthFilterOption 13:
ExistenceOperatorExistenceFilter
Option 14:
ProfilePermissionsConditionOption 1:
ExplicitlyReachableOption 1:
EffectiveDateFilterOption 1:
StaticDateFilterOption 2:
StaticDateRangeFilterOption 3:
RelativeDateOperatorBaseRelativeDateFilterOption 4:
RelativeAnniversaryDateFilterOption 5:
RelativeDateRangeFilterOption 6:
CalendarDateFilterOption 7:
AnniversaryDateFilter
Option 2:
RecordedDateFilterOption 1:
StaticDateFilterOption 2:
StaticDateRangeFilterOption 3:
RelativeDateOperatorBaseRelativeDateFilterOption 4:
RelativeAnniversaryDateFilterOption 5:
RelativeDateRangeFilterOption 6:
CalendarDateFilterOption 7:
AnniversaryDateFilter
Option 2:
ImplicitlyReachableOption 3:
ImplicitlyOrExplicitlyReachableOption 5:
ImplicitlyUnreachableOption 6:
ImplicitlyOrExplicitlyUnreachable
Possible channels for profile permissions criterion.
Option 15:
SegmentsProfileMetricFunnelConditionOption 1:
StaticDateRangeFilterOption 2:
RelativeDateRangeFilterOption 3:
RelativeDateOperatorBaseRelativeDateFilter
Allowed completion window durations for funnel conditions (in seconds).
Date and time when the segment was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)
Date and time when the segment was last updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)
Whether the segment is active. Inactive segments are not processed and their membership does not update.
Show 3 fields
Show 1 field
Response-level metadata
4XXClient Error
Content type: application/vnd.api+json
5XXServer Error
Content type: application/vnd.api+json