For the complete documentation index, see llms.txt. For the full documentation snapshot, see llms-full.txt.
Create a layer. Experiments running in the same layer are granted mutually-exclusive traffic.
curl --request POST \
--url https://app.launchdarkly.com/api/v2/projects/{projectKey}/layers \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"key": "checkout-flow",
"name": "Checkout Flow",
"description": "<string>"
}
'{
"key": "checkout-flow",
"name": "Checkout Flow",
"description": "The checkout flow for the application",
"createdAt": 123,
"randomizationUnit": "user",
"environments": {}
}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.
The project key
Layer response
The key of the layer
"checkout-flow"
The name of the layer
"Checkout Flow"
The description of the layer
"The checkout flow for the application"
The date and time when the layer was created
The unit of randomization for the layer
"user"
The layer configurations for each requested environment
Show child attributes
curl --request POST \
--url https://app.launchdarkly.com/api/v2/projects/{projectKey}/layers \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"key": "checkout-flow",
"name": "Checkout Flow",
"description": "<string>"
}
'{
"key": "checkout-flow",
"name": "Checkout Flow",
"description": "The checkout flow for the application",
"createdAt": 123,
"randomizationUnit": "user",
"environments": {}
}