---
title: "Add File To Element"
method: POST
path: "/api/elements/{element_id}/files"
tags: ["elements"]
---

# Add File To Element

`POST /api/elements/{element_id}/files`

## Request

- Base URL: `https://api.tintin-x.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.tintin-x.com/api/elements/{element_id}/files`
- Auth: HTTP bearer

## Path parameters

- `element_id` string, uuid, required

## Request body

- AddFileRequest
  - `file_id` string, uuid, required
  - `description` string, nullable
  - `role` string
  - `sort_order` integer

## Response `201`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/tintin-x/apis/tintin-api.md) · [All operations](https://skmtc.dev/tintin-x/apis/tintin-api/llms.txt) · [OpenAPI document](https://skmtc.dev/tintin-x/apis/tintin-api/revisions/8839a8d0a66c?raw)
