---
title: "Entity relation"
slug: "entity-relation"
abstract: "Overview, properties, and example for the Entity Relation Object"
---
# Entity relation

An Entity Relation Object contains [links](https://doc.sitecore.com/ch/en/developers/cloud-dev/link.html "Link") to the related [Entity Resources](https://doc.sitecore.com/ch/en/developers/cloud-dev/entity-1523348.html "Entity") for an entity relation. The following properties exist:

| Name | Type | Description |
| --- | --- | --- |
| `parents` | Array | In case of a relation definition with multiple parents, contains an array of [Link objects](https://doc.sitecore.com/ch/en/developers/cloud-dev/link.html) referring to the related parent Entity Resources. |
| `parent` | [Link](https://doc.sitecore.com/ch/en/developers/cloud-dev/link.html) | In case of a relation definition with a single parent, contains a [Link object](https://doc.sitecore.com/ch/en/developers/cloud-dev/link.html) referring to the related parent Entity Resource. |
| `children` | Array | In case of a relation definition with multiple children, contains an array of [Link objects](https://doc.sitecore.com/ch/en/developers/cloud-dev/link.html) referencing the related child Entity Resources. |
| `child` | [Link](https://doc.sitecore.com/ch/en/developers/cloud-dev/link.html) | In case of a relation definition with a single child, contains a [Link object](https://doc.sitecore.com/ch/en/developers/cloud-dev/link.html) referring to the related child Entity Resource. |
| `self` | [Link](https://doc.sitecore.com/ch/en/developers/cloud-dev/link.html) | Contains a [link](https://doc.sitecore.com/ch/en/developers/cloud-dev/link.html) to the resource containing this object. |

## Example

```json
{
  "children":[
    {
      "href":"http://<hostname>/entities/2"
    },
    {
      "href":"http://<hostname>/entities/3"
    }
  ],
  "self":{
    "href":"http://<hostname>/entities/1/relations/R1"
  }
}

```