Vocu Developers
🇺🇸 English
  • 🇺🇸 English
  • 🇨🇳 简体中文
Api Docs(Current)User GuideBack To APP
Api Docs(Current)User GuideBack To APP
🇺🇸 English
  • 🇺🇸 English
  • 🇨🇳 简体中文
  1. Content Template
  • Overview
  • Authentication Method
  • Voice Character
    • Create a new voice character
      POST
    • Add a style to the voice character with the specified ID
      POST
    • Upload avatar for the voice character with the specified ID
      POST
    • Add a voice character to the account via a share ID
      POST
    • Get the list of voice characters for the current user
      GET
    • Get details of the voice character with the specified ID
      GET
    • Get the one-time share link ID for the specified voice character ID
      GET
    • Delete Voice Character with the specified ID
      DELETE
    • Delete Style of the specified ID for the Voice Character with the specified ID
      DELETE
  • Voice Generation
    • Synchronous real-time voice generation
      POST
    • Create Asynchronous Voice Generation Task
      POST
    • Get the list of asynchronous generation tasks for the current user
      GET
    • Get the details of an asynchronous generation task by ID
      GET
    • Delete an asynchronous generation task by ID
      DELETE
  • User Account
    • Get current user account information
      GET
  • Content Template
    • Create New Template
      POST
    • Update Template with Specified ID
      POST
    • Get User's Template List
      GET
    • Get Template Details with Specified ID
      GET
    • Delete Template with Specified ID
      DELETE
  1. Content Template

Update Template with Specified ID

POST
https://v1.vocu.ai/api/template/{id}

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 --request POST 'https://v1.vocu.ai/api/template/' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "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
Body

Example
{
    "status": 200,
    "message": "OK"
}
🟠404Template with the specified ID not found
Modified at 2025-11-09 12:11:15
Previous
Create New Template
Next
Get User's Template List