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

# Update Preset

`POST /update_preset`

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

## Request body

- Preset — プリセット情報
  - `id` integer, required
  - `name` string, required
  - `speaker_uuid` string, required
  - `style_id` integer, required
  - `speedScale` number, required
  - `pitchScale` number, required
  - `intonationScale` number, required
  - `volumeScale` number, required
  - `prePhonemeLength` number, required
  - `postPhonemeLength` number, required

## Response `200`

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

- integer

## Other responses

- `422` — Validation Error

## Changes

- **2024-03-26** `aeea77ff108d` — 2 breaking, 10 warning
  - added `#/components/schemas/Preset` to the request body `allOf` list
  - the request's body type changed from `object` to no type
  - removed the request property `id`
  - removed the request property `intonationScale`
  - …8 more
- **2024-01-17** `1bed97d41915` — 5 warning, 3 info
  - removed the request property `pauseLength`
  - removed the request property `pauseLengthScale`
  - removed the request property `tempoDynamicsScale`
  - removed the optional property `detail/items/ctx` from the response with the `422` status
  - …4 more

[Change history](https://skmtc.dev/aivis-project/apis/aivisspeech-engine/changes/update_preset/post.md)

---

[API](https://skmtc.dev/aivis-project/apis/aivisspeech-engine.md) · [All operations](https://skmtc.dev/aivis-project/apis/aivisspeech-engine/llms.txt) · [OpenAPI document](https://skmtc.dev/aivis-project/apis/aivisspeech-engine/revisions/e2fc361a5b2e?raw)
