Skip to content

Now open source · Learn more

DocsPartial-field update

Partial-field update

PATCHhttp://127.0.0.1:{port}/modes/{id}

Send Authorization: Bearer <token>, with the token from the discovery file. See the Local API overview for the port, the token and the response envelope.

Path parameters

  • idstring (uuid)required

Request body

application/json, ModePatch, required

  • namestring

    Must not be empty after normalization and must be unique. Two names are the same name when they are equal after trimming Unicode whitespace and lowercasing. Windows and Linux trim boundary whitespace first; macOS also normalizes Unicode, trims invisible boundary characters, and rejects names with no visible base character. Lengths are counted in Unicode scalar values.

  • presetstring

    hyper | message | mail | note | meeting | code | custom

  • languagestring

  • modelstring

  • punctuationboolean

  • capitalizationboolean

  • profanityFilterboolean

  • customInstructionsstring

    nullable

  • userSystemPromptstring

    nullable

  • isDefaultboolean

    nullable

  • sortOrderinteger

    Every platform accepts values from -32768 through 32767.

    min -32768 · max 32767 · nullable

  • languageModelstring

    nullable

  • cloudTranscriptionModelstring

    nullable

  • cloudProviderstring

    The cloud vendor this Mode dictates on. A value you WRITE is normalized before it is stored, on every platform: it is lowercased, and the two LEGACY names googlespeech and microsoftazurespeech (either casing) are folded onto hyperwhisper plus the matching cloudAccuracyTier (geminiTranscribe, azureMaiTranscribe) — those providers are HyperWhisper Cloud accuracy tiers now, not standalone vendors. So a Mode read back may not carry the string you sent. On CREATE the folded tier wins over a cloudAccuracyTier in the same body; on PATCH a cloudAccuracyTier in the same request wins — so PATCHING BACK A WHOLE DOCUMENT YOU FETCHED WITH GET folds the provider but PINS the tier the Mode already had, which may not be the tier the name implies. Send only the keys you are changing. A Mode that ALREADY holds a legacy name is not rewritten by this endpoint and is reported as stored. Windows, macOS and Linux fold such a row once at app startup.

    nullable

  • postProcessingModeinteger

    0 = off, 1 = cloud, 2 = local. Every platform rejects all other values.

    min 0 · max 2

  • postProcessingProviderstring

    nullable

  • englishSpellingstring

    american | british | australian | canadian

    nullable

  • useStreamingTranscriptionboolean

    nullable

  • cloudAccuracyTierstring

    nullable

  • removeTrailingPeriodboolean

    nullable

  • enableScreenOCRboolean

    nullable

  • geminiCustomPromptstring

    nullable

  • cloudPostProcessingModelstring

    nullable

  • cloudTranscriptionDomainstring

    nullable

  • localEnginestring

    Windows and Linux. macOS ignores this key.

    nullable

  • localParakeetModelstring

    Windows and Linux. macOS ignores this key.

    nullable

  • localPostProcessingModelstring

    Windows and Linux. macOS ignores this key.

    nullable

  • customVocabularystring[]

    Windows and Linux. macOS ignores this key.

    nullable

  • providerTypestring

    Windows and Linux. macOS ignores this key. Windows accepts local or cloud in any casing, stores it lowercase, and refuses any other value with INVALID_REQUEST. A mode written before that rule may still return another value; Windows runs it on-device. Linux stores any value other than cloud as local and does not refuse it.

    nullable

Responses

200 Updated mode

application/json, ModeResponse

  • okboolean

  • modeMode

    A key that is not listed here is IGNORED, on every platform. That is what makes the "Windows and Linux" keys below safe to send from a cross-platform client. The seven required keys are required on POST /modes only; a body missing one is refused on every platform with HTTP 200 and INVALID_REQUEST, naming the keys that are missing. A well-formed JSON object that is merely incomplete is a business failure, not a protocol failure — see the envelope rule in this document's introduction. A body that is not a JSON object, or that carries a value of the wrong type, is still the protocol failure that rule describes: HTTP 400.

    • idstring (uuid)

    • namestringrequired

      Must not be empty after normalization and must be unique. Two names are the same name when they are equal after trimming Unicode whitespace and lowercasing. Windows and Linux trim boundary whitespace first; macOS also normalizes Unicode, trims invisible boundary characters, and rejects names with no visible base character. Lengths are counted in Unicode scalar values.

    • presetstringrequired

      hyper | message | mail | note | meeting | code | custom

    • languagestringrequired

    • modelstringrequired

    • punctuationbooleanrequired

    • capitalizationbooleanrequired

    • profanityFilterbooleanrequired

    • customInstructionsstring

      nullable

    • userSystemPromptstring

      nullable

    • isDefaultboolean

      nullable

    • isSystemProvidedboolean

      nullable

    • sortOrderinteger

      Every platform accepts values from -32768 through 32767 and refuses anything outside that range with INVALID_REQUEST. On create, macOS ignores the value and assigns the next stored order.

      min -32768 · max 32767 · nullable

    • createdDatestring (date-time)

      nullable

    • modifiedDatestring (date-time)

      nullable

    • languageModelstring

      nullable

    • cloudTranscriptionModelstring

      nullable

    • cloudProviderstring

      The cloud vendor this Mode dictates on. A value you WRITE is normalized before it is stored, on every platform: it is lowercased, and the two LEGACY names googlespeech and microsoftazurespeech (either casing) are folded onto hyperwhisper plus the matching cloudAccuracyTier (geminiTranscribe, azureMaiTranscribe) — those providers are HyperWhisper Cloud accuracy tiers now, not standalone vendors. So a Mode read back may not carry the string you sent. On CREATE the folded tier wins over a cloudAccuracyTier in the same body; on PATCH a cloudAccuracyTier in the same request wins — so PATCHING BACK A WHOLE DOCUMENT YOU FETCHED WITH GET folds the provider but PINS the tier the Mode already had, which may not be the tier the name implies. Send only the keys you are changing. A Mode that ALREADY holds a legacy name is not rewritten by this endpoint and is reported as stored. Windows, macOS and Linux fold such a row once at app startup.

      nullable

    • postProcessingModeinteger

      0 = off, 1 = cloud, 2 = local. Every platform rejects all other values.

      min 0 · max 2

    • postProcessingProviderstring

      nullable

    • englishSpellingstring

      american | british | australian | canadian. On create, an omitted value is seeded from the system region (Canada → canadian, Australia → australian, UK/IE/IN/SG/ZA/NZ and other British-English regions → british, everything else and an unknown region → american).

      nullable

    • useStreamingTranscriptionboolean

      nullable

    • cloudAccuracyTierstring

      On create, an omitted or empty value resolves to elevenLabsScribeV2.

      nullable

    • removeTrailingPeriodboolean

      nullable

    • enableScreenOCRboolean

      nullable

    • geminiCustomPromptstring

      nullable

    • cloudPostProcessingModelstring

      On create, an omitted or empty value resolves to anthropic:claude-haiku-5-5.

      nullable

    • cloudTranscriptionDomainstring

      nullable

    • localEnginestring

      Windows and Linux. macOS ignores this key and never returns it. Defaults to whisper on create.

      nullable

    • localParakeetModelstring

      Windows and Linux. macOS ignores this key and never returns it.

      nullable

    • localPostProcessingModelstring

      Windows and Linux. macOS ignores this key and never returns it.

      nullable

    • customVocabularystring[]

      Windows and Linux. macOS ignores this key and never returns it.

      nullable

    • providerTypestring

      Windows and Linux. macOS ignores this key and never returns it. Windows accepts local or cloud in any casing, stores it lowercase, and refuses any other value with INVALID_REQUEST. A mode written before that rule may still return another value; Windows runs it on-device. Linux stores any value other than cloud as local and does not refuse it.

      nullable

The whole spec is openapi.yaml.