> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 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

<div className="integrations-table">
  | Parameter    | Description                                                                                  |
  | ------------ | -------------------------------------------------------------------------------------------- |
  | Comment      | A comment to add to the update action.                                                       |
  | Environment  | The id of the environment in which the segment to update exists.                             |
  | Identifiers  | A comma-separated list of identifiers to update/add to segment.                              |
  | Replace      | Check to replace the content of the segment (if it previously existed) with the new content. |
  | Segment Name | The name of the segment you want to upload values to.                                        |
  | Workspace    | The id of the workspace in which the environment resides.                                    |
</div>

## Example Output

```json theme={"dark"}
{
	"id": "<string>",
	"orgId": "<string>",
	"environment": "<string>",
	"environmentURN": {
		"type": "<string>",
		"id": "<string>",
		"name": "<string>"
	},
	"name": "<string>",
	"trafficTypeId": "<string>",
	"trafficTypeURN": {
		"type": "<string>",
		"id": "<string>",
		"name": "<string>"
	},
	"description": null,
	"creator": {
		"type": "<string>",
		"id": "<string>"
	},
	"status": "<string>",
	"creationTime": 1502341048133,
	"lastUpdateTime": 431671698992,
	"iAmInThisSegment": null,
	"metadataId": "<string>",
	"keys": null,
	"openChangeRequestId": null,
	"approvers": null,
	"source": null,
	"type": "<string>"
}
```

## Workflow Library Example

[Update Segment Keys in Environment with Split and Send Results Via Email](https://library.blinkops.com/workflows/update-segment-keys-in-environment-with-split-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/update-segment-keys-in-environment-with-split-and-send-results-via-email/canvas" />
</div>
