Skip to Main Content
Categories API
Created by Endrit Beqiri
Created on Nov 26, 2026

REST API: Get links for a LinkEntity (parity with Remoting API GetLinksForLinkEntity)

How:

Add a REST endpoint that returns the links a given LinkEntity belongs to, for example:

GET /api/v1.0.0/linkentities/{linkEntityId}/links

Supporting linkEntityId as a criterion in entities:fetchdata would also work.

Why:

The Remoting API has DataService.GetLinksForLinkEntity(int linkEntityId), but the REST API has no equivalent. Given a LinkEntity id, REST-based integrations can't directly find out which entities it connects. The only workaround, is to:

  1. Query the ids of all possible source entities

  2. Call entities:fetchdata for all of them, including outbound links with link entity data.

  3. Search the response client-side for the matching linkEntityId.

This means fetching link data for potentially every entity of a type in order to find a single link.

For Who:

Partners and customers who build integrations on the REST API and use LinkEntityTypes to store relationship data.


Impact:

  • Brings the REST API to parity with the Remoting API for LinkEntities.

  • Replaces several heavy requests and client-side filtering with one lightweight call.

  • Reduces load on both the API and client systems, and stops the workaround from degrading as data volume grows.

  • Makes LinkEntities practical to use in REST-only integrations.


Additional context:


Please, add your suggestion and feedback above to add to the insights used by Product team when deciding priorities and direction of the Inriver PIM.

  • Attach files