HomeGuidesAPI Reference
ChangelogHelp CenterCommunityContact Us
API Reference

Add Segments to Location

🚧

This endpoint is in beta and subject to change.

A beta revision header (2026-10-15.pre) is required to use our beta APIs. Klaviyo APIs in beta are not intended for use in production. See our versioning and deprecation policy for more information.

Link existing segments to a location.

Segments already linked to this location are left alone, so sending the same request twice changes nothing. A segment linked to a different location moves to this one.

To create a new segment first, use POST /api/segments.

Rate limits:
Burst: 3/s
Steady: 60/m

Scopes:
locations:write
segments:write

OpenAPI Spec

Path Params
string
required
Body Params

A segment as a JSON:API resource identifier.

Written out rather than derived with TypeAndIdOnly because a dynamically built class can't be used as a type annotation.

data
array of objects
required
data*
Headers
string
required
Defaults to 2026-10-15.pre

API endpoint revision (format: YYYY-MM-DD[.suffix])

Responses
204

Success

Language
Credentials
Header
LoadingLoading…
Response
Choose an example:
application/vnd.api+json