---
title: "Upload Question Option Image"
method: POST
path: "/admin/questions/options/upload-image"
tags: ["admin"]
---

# Upload Question Option Image

`POST /admin/questions/options/upload-image`

## Request

- Base URL: `https://api.threadchain.pro` (the document declares no server; this is the origin it was published from)
- URL: `https://api.threadchain.pro/admin/questions/options/upload-image`
- Auth: OAuth 2
  - Password
  - Token URL: `auth/token`

Upload an image for a multiple-choice question option and return its public URL.

The returned URL is meant to be stored on the option as `image_url` when
saving the question template via POST/PATCH /admin/questions.

## Request body `multipart/form-data`

- BodyUploadQuestionOptionImageAdminQuestionsOptionsUploadImagePost
  - `file` string, binary, required: Image file to attach to a multiple-choice option

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/threadchain/apis/threadchain-backend.md) - [All operations](https://skmtc.dev/threadchain/apis/threadchain-backend/llms.txt) - [OpenAPI document](https://skmtc.dev/threadchain/apis/threadchain-backend/revisions/8ee288a7e6bd?raw)
