---
title: "Update a theme"
method: PUT
path: "/api/themes/{themeId}"
tags: ["Themes"]
---

# Update a theme

`PUT /api/themes/{themeId}`

Updates a theme with the provided data.

## Path parameters

- `themeId` integer, required

## Request body

- UpdateRequest — Request model for updating an existing theme.
  - `name` string, required — The name of the theme.
  - `description` string, nullable — The description of the theme (optional).
  - `jsonData` string, required — The JSON data representing theme properties (optional).

## Response `200`

Theme updated successfully.

- UpdateResponse — Response model for updating a theme.
  - `id` string — The ID of the theme.
  - `name` string — The name of the theme.
  - `description` string, nullable — The description of the theme.
  - `jsonData` string — The JSON data representing the theme properties.
  - `createdAt` string, date-time — The date and time when the theme was created.
  - `modifiedAt` string, date-time, nullable — The date and time when the theme was last modified.
  - `formsCount` integer — The count of forms using this theme.

## Other responses

- `400` — Invalid input data.
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Theme not found.

## Changes

- **2025-11-21** `50eff5014b78` — 1 info
  - endpoint added
- **2025-03-24** `fbc3fe6ecbf1` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/endatix/apis/endatix-platform-rest-api/changes/api/themes/:themeId/put.md)

---

[API](https://skmtc.dev/endatix/apis/endatix-platform-rest-api.md) · [All operations](https://skmtc.dev/endatix/apis/endatix-platform-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/endatix/endatix-platform-rest-api/revisions/01bd299fd100/schema)
