Skip to main content
POST
/
api
/
v2
/
segments
/
{projectKey}
/
{environmentKey}
/
{segmentKey}
/
imports
Create big segment import
curl --request POST \
  --url https://app.launchdarkly.com/api/v2/segments/{projectKey}/{environmentKey}/{segmentKey}/imports \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file' \
  --form 'mode=<string>' \
  --form waitOnApprovals=true
{
  "code": "invalid_request",
  "message": "Invalid request body"
}

Documentation Index

Fetch the complete documentation index at: https://launchdarkly-preview.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Path Parameters

projectKey
string<string>
required

The project key

environmentKey
string<string>
required

The environment key

segmentKey
string<string>
required

The segment key

Body

multipart/form-data
file
file

CSV file containing keys

mode
string<string>

Import mode. Use either merge or replace

waitOnApprovals
boolean

Whether to wait for approvals before processing the import

Response

Import request submitted successfully