---
title: "POST /api/relationships"
method: POST
path: "/api/relationships"
tags: ["Relationships"]
---

# POST /api/relationships

`POST /api/relationships`

## Request

- Base URL: `https://saasrock.com` (the document declares no server; this is the origin it was published from)
- URL: `https://saasrock.com/api/relationships`
- Auth: one of:
  - API key in header `X-Api-Key`
  - HTTP bearer

Create a relationship between two rows

## Request body

- object
  - `parent` string, required
  - `child` string, required

## Response `200`

OK

## Other responses

- `400`: Bad Request
- `404`: Not Found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/saasrock/apis/saasrock-api.md) - [All operations](https://skmtc.dev/saasrock/apis/saasrock-api/llms.txt) - [OpenAPI document](https://skmtc.dev/saasrock/apis/saasrock-api/revisions/8a2f4cbb75cd?raw)
