---
title: "Add File"
method: POST
path: "/api/v1/constructor/drafts/{draft_id}/files"
tags: ["constructor"]
---

# Add File

`POST /api/v1/constructor/drafts/{draft_id}/files`

## Request

- Base URL: `https://allover.art` (the document declares no server; this is the origin it was published from)
- URL: `https://allover.art/api/v1/constructor/drafts/{draft_id}/files`
- Auth: none declared

Файл в галерею черновика (тело запроса = файл). assign=front|back|
left|right|all — сразу положить на деталь(и): быстрый путь «бросил файл на
полочку». Файлы тяжелее CHUNK_MAX редактор шлёт кусками (uploads/…).

## Path parameters

- `draft_id` string, required

## Query parameters

- `name` string
- `assign` string

## Headers

- `x-admin-key` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/allover/apis/allover-art-storefront.md) · [All operations](https://skmtc.dev/allover/apis/allover-art-storefront/llms.txt) · [OpenAPI document](https://skmtc.dev/allover/apis/allover-art-storefront/revisions/6f6a2faf8135?raw)
