Skip to main content

Update Segment Keys In Environment

Bulk upload a list of identifiers via JSON to a segment. The segment must exist before calling this endpoint. Segments are limited to 100,000 members and each call can only include 10,000 new members at a time.

Parameters

ParameterDescription
CommentA comment to add to the update action.
EnvironmentThe id of the environment in which the segment to update exists.
IdentifiersA comma-separated list of identifiers to update/add to segment.
ReplaceCheck to replace the content of the segment (if it previously existed) with the new content.
Segment NameThe name of the segment you want to upload values to.
WorkspaceThe id of the workspace in which the environment resides.

Example Output

{
"id": "dcaf31f0-ce9b-11e5-b8fa-6ee57757bd75",
"orgId": "9b3df640-9adc-11e5-a8b2-aa398de8870a",
"environment": "9dee9750-9adc-11e5-a8b2-aa398de8870a",
"name": "segment_1",
"trafficTypeId": "u",
"trafficTypeURN": {
"type": "TRAFFIC_TYPE",
"id": "u",
"name": "user"
},
"description": "Created by API",
"creator": {
"type": "System",
"id": "Root",
"name": "split.io"
},
"status": "ACTIVE",
"creationTime": 1454960452239,
"lastUpdateTime": 1454960453619,
"iAmInThisSegment": null
}

Workflow Library Example

Update Segment Keys in Environment with Split and Send Results Via Email

Workflow LibraryPreview this Workflow on desktop