provider Views (beta) GET
/api/v2/projects/{projectKey}/views/{viewKey}/linked/{resourceType} @utdk/launchdarkly
/api/v2/projects/{projectKey}/views/{viewKey}/linked/{resourceType} Get linked resources
Get a list of all linked resources for a given view.
- LD-API-Version header required
- Version of the endpoint.
- enum: beta
- projectKey path required
- string
- viewKey path required
- string
- resourceType path required
- enum: flags, segments, aiConfigs
- limit query
- The number of views to return.
- integer
- offset query
- Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`.
- integer
- sort query
- Field to sort by. Default field is `linkedAt`, default order is ascending.
- enum: linkedAt, name
- query query
- Case-insensitive search query for linked resources. Matches resource key and, when expanded, resource name.
- string
- filter query
- Optional resource filter expression for linked resources. - Supported for `flags` and `segments` resource types. - Uses the same syntax as link/unlink and list endpoints. - For `segments`, `environmentId` is required when `filter` is provided.
- string
- expand query
- A comma-separated list of fields to expand.
- array
Try it
Authentication
Configure credentials for LaunchDarkly REST API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.
Saved automatically to browser storage.
Code snippet
Updates live as you fill in the form above.
TypeScript
import launchdarkly from '@utdk/launchdarkly';
await launchdarkly.getlinkedresources({
"sort": "linkedAt"
})