For the complete documentation index, see llms.txt. For the full documentation snapshot, see llms-full.txt.
Unlink one or multiple resources from a view:
curl --request DELETE \
--url https://app.launchdarkly.com/api/v2/projects/{projectKey}/views/{viewKey}/link/{resourceType} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--header 'LD-API-Version: <ld-api-version>' \
--data '
{
"filter": "maintainerId:507f1f77bcf86cd799439011,tags:backend+beta",
"keys": [
"flag-1",
"flag-2"
],
"comment": ""
}
'{
"failedResources": [
{
"environmentId": "environmentId",
"resourceKey": "resourceKey",
"errorMessage": "errorMessage",
"resourceType": "flag"
},
{
"environmentId": "environmentId",
"resourceKey": "resourceKey",
"errorMessage": "errorMessage",
"resourceType": "flag"
}
],
"successCount": 0,
"failureCount": 6
}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.
Version of the endpoint.
beta flags, segments The resource to link to the view. Flags are identified by key. Segments are identified by segment ID.
Keys of the resources (flags, segments) to link/unlink
["flag-1", "flag-2"]Optional filter string to determine which resources should be linked. Resources only need to match either the filter or explicitly-listed keys to be linked (union). Uses the same syntax as list endpoints: flags use comma-separated field:value filters, segments use queryfilter syntax.
Supported filters by resource type:
"maintainerId:507f1f77bcf86cd799439011,tags:backend+beta"
Optional comment for the link/unlink operation
curl --request DELETE \
--url https://app.launchdarkly.com/api/v2/projects/{projectKey}/views/{viewKey}/link/{resourceType} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--header 'LD-API-Version: <ld-api-version>' \
--data '
{
"filter": "maintainerId:507f1f77bcf86cd799439011,tags:backend+beta",
"keys": [
"flag-1",
"flag-2"
],
"comment": ""
}
'{
"failedResources": [
{
"environmentId": "environmentId",
"resourceKey": "resourceKey",
"errorMessage": "errorMessage",
"resourceType": "flag"
},
{
"environmentId": "environmentId",
"resourceKey": "resourceKey",
"errorMessage": "errorMessage",
"resourceType": "flag"
}
],
"successCount": 0,
"failureCount": 6
}