Vocu Developers
🇺🇸 English
  • 🇺🇸 English
  • 🇨🇳 简体中文
Api Docs(Current)
User GuideBack To APP
Api Docs(Current)
User GuideBack To APP
🇺🇸 English
  • 🇺🇸 English
  • 🇨🇳 简体中文
🇺🇸 English
  • 🇺🇸 English
  • 🇨🇳 简体中文
  1. Templates
  • Overview
  • Authentication Method
  • Core
    • Voice Character
      • Manage
        • Get the list of voice characters for the current user
        • Get details of the voice character with the specified ID
        • Create a new voice character
        • Update a voice character's name and description
        • Upload avatar for the voice character with the specified ID
        • Delete Voice Character with the specified ID
      • Styles
        • Get the transcription of a style's reference audio
        • Add a style to the voice character with the specified ID
        • Correct the transcription of a style's reference audio
        • Update a style's name and description
        • Set a style as the default style
        • Reset a style and reprocess its reference audio
        • Delete Style of the specified ID for the Voice Character with the specified ID
    • Voice Generation
      • Async jobs
        • Get the list of asynchronous generation tasks for the current user
        • Get the details of an asynchronous generation task by ID
        • Create Asynchronous Voice Generation Task
        • Upload audio for voice conversion
        • Delete an asynchronous generation task by ID
      • Synchronous
        • List synthesis parameter presets
        • One-shot synthesis returning an MP3 stream directly
        • Synchronous real-time voice generation
  • Creative
    • Templates
      • Get User's Template List
        GET
      • Get Template Details with Specified ID
        GET
      • Create New Template
        POST
      • Update Template with Specified ID
        POST
      • Delete Template with Specified ID
        DELETE
  • Account
    • User
      • Get current user account information
  • Advanced
    • Splitter
      • List splitter configurations
      • Get splitter configuration details
      • Create a splitter configuration
      • Update a splitter configuration (diff mode)
      • Delete a splitter configuration
  • Schemas
    • Generation Template
    • Generation Task
    • Voice Character
    • General Generation Parameters (New)
    • ErrorResponse
  1. Templates

Update Template with Specified ID

POST
https://v1.vocu.ai/api/template/{id}
This is a full replacement, not a partial update: contents and metadata are overwritten wholesale. Omitting description removes it from metadata rather than preserving the previous value; name is the sole exception — omit it and the current name is kept.
contents is required and its absence returns 400 VALIDATION_MISSING_FIELD. That check runs before the ownership lookup, so a request without contents against a non-existent template returns 400 rather than 404.
A template that does not exist or belongs to someone else returns 404 RESOURCE_NOT_FOUND.
A successful response is just { status: 200 } and does not include the updated template — call GET /api/template/{id} if you need the new state.
INFO
See the Errors document for the full code reference. Always use the X-Vocu-App-Request-Id response header when troubleshooting.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params

Body Params application/json

Example
{
    "name": "Food Description",
    "description": "Generation template containing food descriptions",
    "contents": [
        {
            "voiceId": "894cdf24-195a-4213-b15f-0395e08e6422",
            "text": "Three artichokes with melon, sun-dried tomatoes, pumpkin, onion, and capers. Served with a side of grilled kiwi, plus your choice of artichoke or green beans."
        },
        {
            "voiceId": "95bc36d7-b0bc-44db-a1da-6a52a97b7222",
            "text": "Eel slow-simmered in a rich tomato sauce with arugula, accompanied by creamy bok choy."
        }
    ]
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://v1.vocu.ai/api/template/' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
    "name": "Food Description",
    "description": "Generation template containing food descriptions",
    "contents": [
        {
            "voiceId": "894cdf24-195a-4213-b15f-0395e08e6422",
            "text": "Three artichokes with melon, sun-dried tomatoes, pumpkin, onion, and capers. Served with a side of grilled kiwi, plus your choice of artichoke or green beans."
        },
        {
            "voiceId": "95bc36d7-b0bc-44db-a1da-6a52a97b7222",
            "text": "Eel slow-simmered in a rich tomato sauce with arugula, accompanied by creamy bok choy."
        }
    ]
}'

Responses

🟢200Template Updated Successfully
application/json
Updated (no data; fetch the detail endpoint if you need the new state)
Bodyapplication/json

Example
{
    "status": 200,
    "message": "OK"
}
🟠400Bad request
🟠401Unauthorized
🟠404Not found
🟠429Rate limited
Modified at 2026-08-23 09:24:46
Previous
Create New Template
Next
Delete Template with Specified ID