---
title: "Add file relationships to an album."
method: POST
path: "/dam/albums/{album_id}/relationships/files"
tags: ["DAM: Albums: Files"]
---

# Add file relationships to an album.

`POST /dam/albums/{album_id}/relationships/files`

## Request

- Base URL: `https://api.kontainer.com/jsonapi/v2`
- URL: `https://api.kontainer.com/jsonapi/v2/dam/albums/{album_id}/relationships/files`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/kontainer/apis/kontainer-api-documentation/docs/dam/albums/:album_id/relationships/files/post.ts> (a function with typed inputs; its response is checked against the schema)

<h3>Adds file relationships to an album.</h3>
            <p>The specified members will be added to the relationship unless they are already present.
            If a given type and id is already in the relationship, it will not be added again.</p>

## Path parameters

- `album_id` integer, required

## Request body

- ResourceIdentifierCollection
  - `data` ResourceIdentifierObject[], required
    - `type` string
    - `id` string

## Response `200`

Success

- ResourceIdentifierCollection
  - `data` ResourceIdentifierObject[], required
    - `type` string
    - `id` string

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `422`: Unprocessable Entity

---

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