patch https://a.klaviyo.com/api/segments/
Update a segment with the given segment ID.
Rate limits:
Burst: 1/s
Steady: 15/m
Daily: 100/d
Scopes:
segments:write
Responses
Update a segment with the given segment ID.
Rate limits:
Burst: 1/s
Steady: 15/m
Daily: 100/d
Scopes:
segments:write
xxxxxxxxxx
13curl --request PATCH \
--url https://a.klaviyo.com/api/segments/id \
--header 'Authorization: Klaviyo-API-Key your-private-api-key' \
--header 'accept: application/vnd.api+json' \
--header 'content-type: application/vnd.api+json' \
--header 'revision: 2025-01-15' \
--data '
{
"data": {
"type": "segment"
}
}
'
xxxxxxxxxx
157}
{
"data": {
"type": "segment",
"id": "string",
"attributes": {
"name": "Repeat Purchasers",
"definition": {
"condition_groups": [
{
"conditions": [
{
"type": "profile-group-membership",
"group_ids": [
"string"
],
"timeframe_filter": {
"type": "date",
"operator": "after",
"date": "2022-11-08T00:00:00+00:00"
}
},
{
"type": "profile-group-membership",