For the complete documentation index, see llms.txt. For the full documentation snapshot, see llms-full.txt.
Create or update flag defaults for a project.
curl --request PUT \
--url https://app.launchdarkly.com/api/v2/projects/{projectKey}/flag-defaults \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"tags": [
"tag-1",
"tag-2"
],
"temporary": true,
"booleanDefaults": {
"trueDisplayName": "True",
"falseDisplayName": "False",
"trueDescription": "serve true",
"falseDescription": "serve false",
"onVariation": 0,
"offVariation": 1
},
"defaultClientSideAvailability": {
"usingMobileKey": true,
"usingEnvironmentId": true
}
}
'{
"tags": [
"tag-1",
"tag-2"
],
"temporary": true,
"booleanDefaults": {
"trueDisplayName": "True",
"falseDisplayName": "False",
"trueDescription": "serve true",
"falseDescription": "serve false",
"onVariation": 0,
"offVariation": 1
},
"defaultClientSideAvailability": {
"usingMobileKey": true,
"usingEnvironmentId": true
},
"_links": {}
}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
A list of default tags for each flag
["tag-1", "tag-2"]Whether the flag should be temporary by default
true
Show child attributes
Which client-side SDK types can use this flag by default.
Show child attributes
Flag default response
A list of default tags for each flag
["tag-1", "tag-2"]Whether the flag should be temporary by default
true
Show child attributes
Which client-side SDK types can use this flag by default.
Show child attributes
The location and content type of related resources
Show child attributes
curl --request PUT \
--url https://app.launchdarkly.com/api/v2/projects/{projectKey}/flag-defaults \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"tags": [
"tag-1",
"tag-2"
],
"temporary": true,
"booleanDefaults": {
"trueDisplayName": "True",
"falseDisplayName": "False",
"trueDescription": "serve true",
"falseDescription": "serve false",
"onVariation": 0,
"offVariation": 1
},
"defaultClientSideAvailability": {
"usingMobileKey": true,
"usingEnvironmentId": true
}
}
'{
"tags": [
"tag-1",
"tag-2"
],
"temporary": true,
"booleanDefaults": {
"trueDisplayName": "True",
"falseDisplayName": "False",
"trueDescription": "serve true",
"falseDescription": "serve false",
"onVariation": 0,
"offVariation": 1
},
"defaultClientSideAvailability": {
"usingMobileKey": true,
"usingEnvironmentId": true
},
"_links": {}
}