---
title: "Add File Associated Entities Relationships"
method: POST
path: "/files/{file-id}/relationships/associated_entities"
tags: ["Files"]
---

# Add File Associated Entities Relationships

`POST /files/{file-id}/relationships/associated_entities`

## Request

- Base URL: `https://examplefirm.addepar.com/api/v1`
- URL: `https://examplefirm.addepar.com/api/v1/files/{file-id}/relationships/associated_entities`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/addepar/apis/addepar-api/docs/files/:file-id/relationships/associated_entities/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `file-id` integer, required

## Headers

- `Addepar-Firm` string, required

## Request body

- ManyRelationshipDataInteger
  - `ids` integer[]
  - `jsonApiType` string

## Response `201`

Created

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict

---

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