---
title: "Update Preset"
method: POST
path: "/update_preset"
tags: ["その他"]
---

# Update Preset

`POST /update_preset`

既存のプリセットを更新します。

## Request body

- Preset — プリセット情報。
  - `id` integer, required — プリセットID
  - `name` string, required — プリセット名
  - `speaker_uuid` string, required — キャラクターのUUID
  - `style_id` integer, required — スタイルID
  - `speedScale` number, required — 全体の話速
  - `pitchScale` number, required — 全体の音高
  - `intonationScale` number, required — 全体の抑揚
  - `volumeScale` number, required — 全体の音量
  - `prePhonemeLength` number, required — 音声の前の無音時間
  - `postPhonemeLength` number, required — 音声の後の無音時間
  - `pauseLength` number — 句読点などの無音時間
  - `pauseLengthScale` number — 句読点などの無音時間（倍率）

## Response `200`

更新したプリセットのプリセットID

- integer

## Other responses

- `422` — Validation Error

## Changes

- **2025-03-02** `d8b6a60f88af` — 1 info
  - api operation id `update_preset_update_preset_post` removed and replaced with `update_preset`
- **2025-01-03** `b7afc41080b3` — 11 breaking, 1 warning, 2 info
  - added the new required request property `id`
  - added the new required request property `intonationScale`
  - added the new required request property `name`
  - added the new required request property `pitchScale`
  - …10 more
- **2024-06-28** `3b94f9a50fd2` — 2 info
  - added the new optional request property `allOf[subschema #1: Preset]/pauseLength`
  - added the new optional request property `allOf[subschema #1: Preset]/pauseLengthScale`
- **2024-04-26** `907e5011a1aa` — 2 breaking, 10 warning
  - added `#/components/schemas/Preset` to the request body `allOf` list
  - the request's body type/format changed from `object`/`` to ``/``
  - removed the request property `id`
  - removed the request property `intonationScale`
  - …8 more
- **2024-01-17** `98b1b5ed5d83` — 1 breaking
  - response property `detail/items/loc/items/` list-of-types was widened by adding types `integer` to media type `application/json` of response `422`

[Full history](https://skmtc.dev/voicevox/apis/voicevox-engine-oss/changes/update_preset/post.md)

---

[API](https://skmtc.dev/voicevox/apis/voicevox-engine-oss.md) · [All operations](https://skmtc.dev/voicevox/apis/voicevox-engine-oss/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/voicevox/voicevox-engine-oss/revisions/fbe86976d6b9/schema)
