---
title: "Uploads a new theme file"
method: POST
path: "/api/Theme/upload-theme"
tags: ["Theme"]
---

# Uploads a new theme file

`POST /api/Theme/upload-theme`

## Request

- Base URL: `http://localhost:5000`
- URL: `http://localhost:5000/api/Theme/upload-theme`
- Auth: API key in header `x-api-key`

## Request body `multipart/form-data`

- object
  - `formFile` string, binary

## Response `200`

OK

- SiteThemeDto
  - `id` integer
  - `name` string, nullable, required
  - `normalizedName` string, nullable, required
  - `fileName` string, nullable, required
  - `isDefault` boolean
  - `provider` 1 | 2: Members: - `1` — System - `2` — Custom
  - `previewUrls` string[], nullable
  - `description` string, nullable
  - `author` string, nullable
  - `compatibleVersion` string, nullable
  - `selector` string, nullable

---

[API](https://skmtc.dev/kareadita/apis/kavita.md) - [All operations](https://skmtc.dev/kareadita/apis/kavita/llms.txt) - [OpenAPI document](https://skmtc.dev/kareadita/apis/kavita/revisions/d266465eeb67?raw)
