# Name a relationship

Makes an EMPTY entity group on this page — a named relationship with a kind (affiliated, parent_subsidiary, common_ownership, franchise, successor). Members are added afterwards. Use it when two or more records on one page turn out to be the same commercial party.

Access class: `def:read`.

## Endpoint

`POST /v1/definitions/{key}/entity-groups`

## Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| key | path | string | Yes |

## Request body

Content type: `application/json`.

```json
{
  "body": {
    "kind": "string",
    "name": "string",
    "notes": "string"
  },
  "params": {
    ":key": "string"
  },
  "query": {}
}
```

## Responses

### 201

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "createdAt": "string",
    "createdByUserId": 1.5,
    "id": "",
    "kind": "string",
    "memberCount": 1.5,
    "name": "string",
    "notes": "string",
    "updatedAt": "string"
  }
}
```

### default

a refusal: `{"error": "<what a person needs to read>"}`. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.

Content type: `application/json`.

```json
{
  "error": "string"
}
```
