---
title: "Update template configuration"
method: PUT
path: "/api/manageTemplate/updateTemplateConfig"
tags: ["Manage Template"]
---

# Update template configuration

`PUT /api/manageTemplate/updateTemplateConfig`

## Request body

- UpdateTemplateConfigDto
  - `templateDir` string, required — The dir of the template
  - `newTemplateConfig` TemplateConfigDto, required
    - `name` string, required — The name of the template
    - `id` string — The id of the template
    - `webgal-version` string, required — The webgal version of the template
    - `fonts` TemplateFontConfigDto[] — The font registrations of the template
      - `font-family` string, required — The font-family name
      - `url` string, required — The url of the font file
      - `type` 'truetype' | 'opentype' | 'woff' | 'woff2' | 'embedded-opentype' | 'svg', required — The font type used for @font-face format

## Response `200`

Template configuration updated successfully.

## Other responses

- `400` — Invalid input data.
- `404` — Template configuration not found.
- `500` — Internal server error.

## Changes

- **2026-05-03** `5714de346137` — 1 info
  - the request property `newTemplateConfig/allOf[#/components/schemas/TemplateConfigDto]/id` became optional
- **2026-05-03** `b5587d3b83c9` — 1 breaking
  - the request property `newTemplateConfig/allOf[#/components/schemas/TemplateConfigDto]/id` became required
- **2026-05-02** `96d8218c9b04` — 1 info
  - the request property `newTemplateConfig/allOf[#/components/schemas/TemplateConfigDto]/id` became optional
- **2026-01-31** `33d29418e302` — 1 info
  - added the new optional request property `newTemplateConfig/allOf[#/components/schemas/TemplateConfigDto]/fonts`
- **2024-11-15** `c868708333be` — 1 info
  - endpoint added

[Full history](https://skmtc.dev/openwebgal/apis/webgal-terre-api/changes/api/manageTemplate/updateTemplateConfig/put.md)

---

[API](https://skmtc.dev/openwebgal/apis/webgal-terre-api.md) · [All operations](https://skmtc.dev/openwebgal/apis/webgal-terre-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openwebgal/webgal-terre-api/revisions/ebcacb42f932/schema)
