---
title: "Tải ảnh dùng trong nội dung khảo sát: ảnh bìa, ảnh lựa chọn, ảnh câu hotspot (multipart/form-data, có thể nhiều ảnh)"
method: POST
path: "/admin/surveys/assets"
tags: ["SurveysAdmin"]
---

# Tải ảnh dùng trong nội dung khảo sát: ảnh bìa, ảnh lựa chọn, ảnh câu hotspot (multipart/form-data, có thể nhiều ảnh)

`POST /admin/surveys/assets`

## Request

- Base URL: `https://api.fireant.vn`
- URL: `https://api.fireant.vn/admin/surveys/assets`
- Auth: OAuth 2
  - Implicit: `https://accounts.fireant.vn/connect/authorize`
  - Scopes: `user-data-write`
- TypeScript: <https://skmtc.dev/fireant/apis/fireant-restful-api/docs/admin/surveys/assets/post.ts> (a function with typed inputs; its response is checked against the schema)

jpg, png, webp tối đa 5 MB; gif tối đa 3 MB (giữ nguyên ảnh động). Ảnh jpg/png lớn hơn 1600px được thu nhỏ và xoay đúng chiều theo EXIF.

## Response `201`

Danh sách ảnh đã lưu (url, width, height)

- FireAntApiModelsSurveysSurveyAssetUploadResult[]
  - `url` string: URL công khai
  - `fileName` string: Tên tệp gốc
  - `size` integer: Dung lượng sau khi xử lý (byte)
  - `contentType` string: Kiểu nội dung
  - `width` integer: Bề rộng ảnh (px), null nếu không đọc được
  - `height` integer: Chiều cao ảnh (px), null nếu không đọc được

## Other responses

- `400`: Ảnh không hợp lệ
- `415`: Không phải multipart/form-data

## Changes

- **2026-10-10** `300cfd8b632c`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/fireant/apis/fireant-restful-api/changes/admin/surveys/assets/post.md)

---

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