---
title: "Entity definition"
slug: "entity-definition"
abstract: "Overview, properties, and example for the Entity Definition Object."
---
# Entity definition

The Entity Definition Object contains all the information related to an entity definition. An entity definition has the following properties:

| Name | Type | Description |
| --- | --- | --- |
| `id` | Number | The id of the entity definition |
| `name` | String | The name of the entity definition |
| `display_template` | String | A template to use when entities of this definition need to be converted to strings. |
| `labels` | [Labels](https://doc.sitecore.com/ch/en/developers/cloud-dev/labels.html) | The labels of the entity definition |
| `member_groups` | Array | An array of [Member Group Objects](https://doc.sitecore.com/ch/en/developers/cloud-dev/member-group.html). Each member group contains related member definitions. |
| `self` | [Link](https://doc.sitecore.com/ch/en/developers/cloud-dev/link.html) | A hyperlink to the resource that represents this entity definition. |
| `entities` | [Link](https://doc.sitecore.com/ch/en/developers/cloud-dev/link.html) | A hyperlink to the collection resource containing all entities defined by this entity definition. |

## Example

```json
{
  "id":id,
  "name":"entity definition name"
  "labels":{
    "en-US":"display name in English",
    "nl-BE":"display name in Flemish"
  },
  "member_groups":[
    {
      "name":"Example Member Group",
      "labels":{},
      "members":[
        {
          "type":"String",
          "name":"Example Member",
          "is_multiline":false,
          "is_indexed":false,
          "is_mandatory":true,
          "labels":{}
          "validation_expression":null
        }
      ]
  ],
  "self":{
    "href":"URL to this entity definition resource"
  },
  "entities": {
    "href":"URL to the collection resource of entities for this entity definition"
  }
}

```