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 segments using segment IDs or filters (tags, query, unbounded) - Link AI configs using config keys When both keys and filters are provided, resources matching either condition are linked (union).

Authentication

Authorizationstring
API Key authentication via header

Path parameters

projectKeystringRequired
viewKeystringRequired
resourceTypeenumRequired
Allowed values:

Headers

LD-API-VersionenumRequired
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
ViewLinkRequestKeysobjectRequired
OR
ViewLinkRequestSegmentIdentifiersobjectRequired
OR
ViewLinkRequestFilterobjectRequired

Response

Successful response
successCountinteger
The number of resources successfully linked.
failureCountinteger
The number of resources that failed to link.
linkedResourcesobject
failedResourceslist of objects
Details of resources that failed to link.

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error