---
title: "Create Entity Relationship"
method: POST
path: "/api/entities/{entity_id}/relationships"
---

# Create Entity Relationship

`POST /api/entities/{entity_id}/relationships`

## Request

- Base URL: `https://api.yourbeckett.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.yourbeckett.com/api/entities/{entity_id}/relationships`
- Auth: none declared

Create a relationship between two entities.

## Path parameters

- `entity_id` string, uuid, required

## Request body

- CreateEntityRelationshipRequest
  - `target_entity_id` string, required
  - `relationship_type` string, required
  - `context` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/yourbeckett/apis/beckett-platform.md) · [All operations](https://skmtc.dev/yourbeckett/apis/beckett-platform/llms.txt) · [OpenAPI document](https://skmtc.dev/yourbeckett/apis/beckett-platform/revisions/a1cb8f2c8961?raw)
