---
title: "Create a new project theme config"
method: POST
path: "/project-theme-config"
tags: ["ProjectThemeConfig"]
---

# Create a new project theme config

`POST /project-theme-config`

Create a new project theme config with given parameters

## Request body

- ProjectThemeConfig
  - `defaultThemeId` integer
  - `id` integer
  - `projectId` integer, required
  - `themeUsage` 'MANDATORY' | 'OPTIONAL', required
  - `themes` 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)
