---
title: "Create new media attachment."
method: POST
path: "/rest/api/media/"
tags: ["Media"]
---

# Create new media attachment.

`POST /rest/api/media/`

Create new media attachment

## Response `201`

Create attachment correctly

- Media
  - `uuid` string, required
  - `name` string, required
  - `type` string, required
  - `expiresAt` string, date-time — Expiration date

## Other responses

- `401` — Authorization failed
- `415` — Invalid file type
- `422` — Validation error

---

[API](https://skmtc.dev/apilo/apis/apilo-rest-api.md) · [All operations](https://skmtc.dev/apilo/apis/apilo-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/apilo/apilo-rest-api/revisions/a0f9dcdba6cc/schema)
