> ## Documentation Index
> Fetch the complete documentation index at: https://kawax.biz/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Preset

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

**Laravel実装状況**: ✅ NativePresetStoreでJSONファイルに永続化（フォールバック不要）



## OpenAPI

````yaml https://raw.githubusercontent.com/invokable/laravel-voicevox/refs/heads/main/docs/jp/laravel-openapi.json post /update_preset
openapi: 3.1.0
info:
  title: VOICEVOX ENGINE OSS
  description: VOICEVOX OSS の音声合成エンジンです。
  version: latest
servers: []
security: []
paths:
  /update_preset:
    post:
      tags:
        - その他
      summary: Update Preset
      description: |-
        既存のプリセットを更新します。

        **Laravel実装状況**: ✅ NativePresetStoreでJSONファイルに永続化（フォールバック不要）
      operationId: update_preset
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Preset'
              description: 更新するプリセット。プリセットIDが更新対象と一致している必要があります。
        required: true
      responses:
        '200':
          description: 更新したプリセットのプリセットID
          content:
            application/json:
              schema:
                type: integer
                title: Response Update Preset Update Preset Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    Preset:
      properties:
        id:
          type: integer
          title: Id
          description: プリセットID
        name:
          type: string
          title: Name
          description: プリセット名
        speaker_uuid:
          type: string
          title: Speaker Uuid
          description: キャラクターのUUID
        style_id:
          type: integer
          title: Style Id
          description: スタイルID
        speedScale:
          type: number
          title: Speedscale
          description: 全体の話速
        pitchScale:
          type: number
          title: Pitchscale
          description: 全体の音高
        intonationScale:
          type: number
          title: Intonationscale
          description: 全体の抑揚
        volumeScale:
          type: number
          title: Volumescale
          description: 全体の音量
        prePhonemeLength:
          type: number
          title: Prephonemelength
          description: 音声の前の無音時間
        postPhonemeLength:
          type: number
          title: Postphonemelength
          description: 音声の後の無音時間
        pauseLength:
          type: number
          title: Pauselength
          description: 句読点などの無音時間
        pauseLengthScale:
          type: number
          title: Pauselengthscale
          description: 句読点などの無音時間（倍率）
          default: 1
      type: object
      required:
        - id
        - name
        - speaker_uuid
        - style_id
        - speedScale
        - pitchScale
        - intonationScale
        - volumeScale
        - prePhonemeLength
        - postPhonemeLength
      title: Preset
      description: プリセット情報。
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````