Skip to main content
POST
/
project-theme-config
Create a new project theme config
curl --request POST \
  --url https://api.kameleoon.com/project-theme-config \
  --header 'Content-Type: application/json' \
  --data '
{
  "projectId": 123,
  "themeUsage": "MANDATORY",
  "defaultThemeId": 123,
  "id": 123,
  "themes": [
    {
      "projectIds": [
        123
      ],
      "colors": [
        {
          "id": "<string>",
          "type": "COLOR",
          "value": "<string>"
        }
      ],
      "components": [
        "<string>"
      ],
      "customFonts": [
        {
          "fontFamily": "<string>",
          "fontSrc": "<string>",
          "fontWeights": [
            "<string>"
          ],
          "id": "<string>",
          "importSrc": "<string>"
        }
      ],
      "description": "<string>",
      "id": 123,
      "name": "<string>",
      "selectedFonts": [
        {
          "id": "<string>",
          "type": "DEFAULT"
        }
      ],
      "status": "ACTIVE",
      "tags": [
        "<string>"
      ],
      "widgetIds": [
        123
      ]
    }
  ]
}
'
{
  "projectId": 123,
  "themeUsage": "MANDATORY",
  "defaultThemeId": 123,
  "id": 123,
  "themes": [
    {
      "projectIds": [
        123
      ],
      "colors": [
        {
          "id": "<string>",
          "type": "COLOR",
          "value": "<string>"
        }
      ],
      "components": [
        "<string>"
      ],
      "creationDate": "2023-11-07T05:31:56Z",
      "customFonts": [
        {
          "fontFamily": "<string>",
          "fontSrc": "<string>",
          "fontWeights": [
            "<string>"
          ],
          "id": "<string>",
          "importSrc": "<string>"
        }
      ],
      "dateModified": "2023-11-07T05:31:56Z",
      "description": "<string>",
      "id": 123,
      "name": "<string>",
      "selectedFonts": [
        {
          "id": "<string>",
          "type": "DEFAULT"
        }
      ],
      "status": "ACTIVE",
      "tags": [
        "<string>"
      ],
      "widgetIds": [
        123
      ]
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.kameleoon.com/llms.txt

Use this file to discover all available pages before exploring further.

Body

application/json
projectId
integer<int64>
required
themeUsage
enum<string>
required
Available options:
MANDATORY,
OPTIONAL
defaultThemeId
integer<int64>
id
integer<int64>
themes
object[]

Response

Created

projectId
integer<int64>
required
themeUsage
enum<string>
required
Available options:
MANDATORY,
OPTIONAL
defaultThemeId
integer<int64>
id
integer<int64>
themes
object[]