patch https://a.klaviyo.com/api/segments//
Update the name of a segment with the given segment ID.
Rate limits:
Burst: 1/s
Steady: 15/m
Daily: 100/d
Scopes:
segments:write
Responses
Update the name of 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/json' \
--header 'content-type: application/json' \
--header 'revision: 2024-02-15' \
--data '
{
"data": {
"type": "segment"
}
}
'
xxxxxxxxxx
}
{
"data": {
"type": "segment",
"id": "string",
"attributes": {
"name": "Repeat Purchasers",
"created": "2022-11-08T00:00:00+00:00",
"updated": "2022-11-08T00:00:00+00:00",
"is_active": true,
"is_processing": true,
"is_starred": true
},
"relationships": {
"profiles": {
"data": [
{
"type": "profile",
"id": "string"
}
],
"links": {
"self": "string",
"related": "string"