---
title: "Create a new theme"
method: POST
path: "/themes"
tags: ["Theme"]
---

# Create a new theme

`POST /themes`

Create a new theme with given parameters

## Request body

- Theme
  - `colors` ThemeColor[]
    - `id` string
    - `type` 'COLOR' | 'GRADIENT'
    - `value` string
  - `components` string[]
  - `creationDate` string, date-time
  - `customFonts` ThemeCustomFont[]
    - `fontFamily` string
    - `fontSrc` string
    - `fontWeights` string[]
    - `id` string
    - `importSrc` string
  - `dateModified` string, date-time
  - `description` string
  - `id` integer
  - `name` string
  - `projectIds` integer[], required
  - `selectedFonts` ThemeSelectedFont[]
    - `id` string
    - `type` 'DEFAULT' | 'CUSTOM'
  - `status` 'ACTIVE' | 'DRAFT' | 'PAUSED'
  - `tags` string[]
  - `widgetIds` integer[]

## Response `201`

Created

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `422` — Unprocessable Entity
- `423` — Locked
- `429` — Too Many Requests
- `500` — Internal Server Error

---

[API](https://skmtc.net/kameleoon/apis/openapi-definition-for-automation-api.md) · [All operations](https://skmtc.net/kameleoon/apis/openapi-definition-for-automation-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kameleoon/openapi-definition-for-automation-api/versions/09f2abcea0b5/schema)
