Link resource
Link one or multiple resources to a view by keys, filters, or both:
- Link flags using flag keys or filters (maintainerId, maintainerTeamKey, tags, state, query)
- Link AI Configs using AI Config keys
- Link metrics using metric keys
- Link segments using segment IDs or filters (tags, query, unbounded)
When both keys and filters are provided, resources matching either condition are linked (union).
Authentication
Authorizationstring
API Key authentication via header
Path parameters
projectKey
viewKey
resourceType
Allowed values:
Headers
LD-API-Version
Version of the endpoint.
Allowed values:
Request
Resources to link to the view. You can provide explicit keys/IDs, filters, or both.
- Flags: identified by key or filtered by maintainerId, maintainerTeamKey, tags, state, query
- Segments: identified by segment ID or filtered by tags, query, unbounded
- AI configs and metrics: identified by key
ViewLinkRequestKeys
OR
ViewLinkRequestSegmentIdentifiers
OR
ViewLinkRequestFilter
Response
Successful response
successCount
The number of resources successfully linked.
failureCount
The number of resources that failed to link.
linkedResources
failedResources
Details of resources that failed to link.