Update Segment
PATCHhttps://a.klaviyo.com/api/segments/{id}
Update a segment with the given segment ID.
- Revision header
revision: 2025-01-15required- Scopes
segments:write- Rate limits
- Burst:
1/sSteady:15/mDaily:100/d
Path parameters
Headers
API endpoint revision (format: YYYY-MM-DD[.suffix])
2025-01-15
Request body
Content type: application/vnd.api+jsonrequired
Show 3 fields
Show 3 fields
Show 1 field
Show 1 field
Option 1:
ProfileHasGroupMembershipConditionOption 3:
RelativeDateOperatorBaseFilterOperators 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:
RelativeDateOperatorBaseFilterEnter 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:
NumericOperatorFilterEnter 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:
RelativeDateOperatorBaseFilterEnter 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:
RelativeDateOperatorBaseFilterEnter 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:
RelativeDateOperatorBaseFilterEnter 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:
RelativeDateOperatorBaseFilterEnter 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:
ManualImportMethodFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 4:
ManualAddMethodFilterEnter 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:
ManualImportMethodFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 4:
ManualAddMethodFilterEnter 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:
ProfilePropertyConditionOption 1:
StringOperatorFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 2:
StringArrayOperatorFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 4:
NumericOperatorFilterEnter 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:
RelativeDateOperatorBaseFilterEnter 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:
ExistenceOperatorFilterEnter valid JSON. Until you do, the example request uses the example value.
Option 9:
ProfilePredictiveAnalyticsStringConditionDimension for string profile predictive analytics conditions.
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:
RelativeDateOperatorBaseFilterOption 5:
RelativeDateRangeFilter
Show 2 fields
Option 8:
NumericOperatorFilter
Option 4:
ProfileMarketingConsentConditionOption 1:
HasEmailMarketingConsentOption 2:
HasEmailMarketingSubscribedOption 2:
StatusDateFilterOption 1:
StaticDateFilterOption 2:
StaticDateRangeFilterOption 3:
RelativeDateOperatorBaseFilterOption 4:
RelativeAnniversaryDateFilterOption 5:
RelativeDateRangeFilter
Option 2:
NoEmailMarketingConsentOption 1:
NoEmailMarketingOption 1:
BounceDateFilterOption 1:
StaticDateFilterOption 2:
StaticDateRangeFilterOption 3:
RelativeDateOperatorBaseFilterOption 4:
RelativeAnniversaryDateFilterOption 5:
RelativeDateRangeFilterOption 6:
CalendarDateFilterOption 7:
AnniversaryDateFilter
Option 2:
ManualSuppressionDateFilterOption 1:
StaticDateFilterOption 2:
StaticDateRangeFilterOption 3:
RelativeDateOperatorBaseFilterOption 4:
RelativeAnniversaryDateFilterOption 5:
RelativeDateRangeFilterOption 6:
CalendarDateFilterOption 7:
AnniversaryDateFilterOption 8:
IsSetExistenceFilter
Option 3:
InvalidEmailDateFilterOption 1:
StaticDateFilterOption 2:
StaticDateRangeFilterOption 3:
RelativeDateOperatorBaseFilterOption 4:
RelativeAnniversaryDateFilterOption 5:
RelativeDateRangeFilterOption 6:
CalendarDateFilterOption 7:
AnniversaryDateFilterOption 8:
IsSetExistenceFilter
Option 3:
HasSMSMarketingConsentShow 2 fields
Option 1:
StatusDateFilterOption 2:
FormMethodFilterOption 3:
ManualImportMethodFilterOption 4:
ManualAddMethodFilterOption 6:
InboundMessageMethodFilterOption 7:
PreferencePageMethodFilterOption 8:
SftpMethodFilterOption 9:
ShopifyIntegrationMethodFilter
Option 4:
NoSMSMarketingConsentOption 1:
NoSMSMarketingOption 2:
NoSMSMarketingUnsubscribedOption 1:
StatusDateFilterOption 2:
FormMethodFilterOption 3:
ManualImportMethodFilterOption 4:
ManualAddMethodFilterOption 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:
ProfilePropertyConditionOption 1:
StringOperatorFilterOption 2:
StringArrayOperatorFilterOption 4:
NumericOperatorFilterOption 5:
BooleanFilterOption 6:
StaticDateFilterOption 7:
StaticDateRangeFilterOption 8:
RelativeDateOperatorBaseFilterOption 9:
RelativeAnniversaryDateFilterOption 10:
RelativeDateRangeFilterOption 11:
CalendarDateFilterOption 12:
AnniversaryDateFilterOption 14:
ListLengthFilterOption 15:
ExistenceOperatorFilter
Option 9:
ProfilePredictiveAnalyticsStringConditionDimension for string profile predictive analytics conditions.
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)
Show 3 fields
Show 1 field
4XXClient Error
Content type: application/vnd.api+json
5XXServer Error
Content type: application/vnd.api+json