---
title: "Upload Voice Encoding"
method: PUT
path: "/v1/license/voices/{voice_id}/references/{reference_id}/encoding"
tags: ["license"]
---

# Upload Voice Encoding

`PUT /v1/license/voices/{voice_id}/references/{reference_id}/encoding`

## Request

- Base URL: `https://api.kugelaudio.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.kugelaudio.com/v1/license/voices/{voice_id}/references/{reference_id}/encoding`
- Auth: none declared
- TypeScript: <https://skmtc.dev/kugelaudio/apis/kugelaudio-tts-api/docs/v1/license/voices/:voice_id/references/:reference_id/encoding/put.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `voice_id` integer, required
- `reference_id` integer, required

## Query parameters

- `model_id` string, required
- `license_key` string, nullable

## Headers

- `X-Kugel-License-Key` string, nullable

## Response `204`

Successful Response

## Other responses

- `422`: Validation Error

## Changes

- **2026-09-22** `ba0691df619a`: 1 warning, 4 info
  - deleted the `query` request parameter `instance_id`
  - added the new optional `header` request parameter `X-Kugel-License-Key`
  - the `query` request parameter `license_key` became optional
  - `query` request parameter `license_key` list-of-types was widened by adding types `null`
  - …1 more

[Operation history](https://skmtc.dev/kugelaudio/apis/kugelaudio-tts-api/changes/v1/license/voices/:voice_id/references/:reference_id/encoding/put.md)

---

[API](https://skmtc.dev/kugelaudio/apis/kugelaudio-tts-api.md) - [All operations](https://skmtc.dev/kugelaudio/apis/kugelaudio-tts-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kugelaudio/apis/kugelaudio-tts-api/revisions/711945519e5c?raw)
