Skip to main content
Users
CloudPortalLogin
  • Powered byPowered by
Developing with Sitecore CDP
Data privacy
Before you start sending data
Integrating with Sitecore CDP
Stream API
Batch API
REST APIs
Data lake export service
  • Sitecore CDP for developers
  • REST APIs
  • Linking to objects

Linking to objects

REST resources that reference other resources, such as an account referencing its parent directory, represent the reference as a link. A link is an object nested within an existing resource representation that has an href attribute. The href attribute is the fully qualified location URI of the linked resource.

A link object:

RequestResponse
{
    "href": "<baseURL>/v2/someCollection/{ref}"
}

This JSON object structure is called a link because it provides a similar functionality to more familiar HTML anchors that are often called hyperlinks or links for short. You can use the href attribute within the link object to interact with that resource, if required.

This someCollection resource has more than one link: the resource itself and the items in the resource collection:

RequestResponse
{
  "href": "<baseURL>/v2/someCollection",
  "offset": 0,
  "limit": 10,
  "items" : [
    {
      "href": "<baseURL>/v2/someCollection/37e60a14-9198-4b38-8bc3-f3924e2b6fe4"
    },
    {
      "href": "<baseURL>/v2/someCollection/D1548691-47DF-41B6-A7B7-77516A76D62C"
    }
  ]
}

Do you have some feedback for us?

If you have suggestions for improving this article,

Privacy policySitecore Trust CenterCopyright © 1999-2026 Sitecore