PUT/api/v1/voices/{persona_id}
Enable or disable a voice
Body `{"enabled": true|false}. For an executive's voice this is the same<br/>toggle as the executives page: enabling tunes the persona from the executive's<br/>statements when it has not been tuned yet, disabling keeps the tuned persona.<br/>For any other persona it sets include_in_voice_list`.
PARAMETERS
- persona_idpath · stringREQUIRED
- Persona id of the voice, as listed by GET /api/v1/voices.e.g. string
REQUEST BODY · APPLICATION/JSON · REQUIRED
{
"enabled": true
}
REQUEST
curl -X PUT "https://gateway.kumkuat.ai/api/v1/voices/string" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"enabled": true
}'
import requests
r = requests.put("https://gateway.kumkuat.ai/api/v1/voices/string", headers={"X-API-Key": "YOUR_KEY"}, json={
"enabled": True
})
print(r.status_code, r.headers.get("X-Gw-Remaining"))
print(r.json())
const r = await fetch("https://gateway.kumkuat.ai/api/v1/voices/string", {
method: "PUT",
headers: { "X-API-Key": "YOUR_KEY", "Content-Type": "application/json" },
body: JSON.stringify({
"enabled": true
})
});
console.log(r.status, r.headers.get("X-Gw-Remaining"));
console.log(await r.json());
RESPONSE
200OK
{
"enabled": true,
"kind": "executive",
"name": "Jane Doe",
"persona_id": "d4e9b2a1-6c3f-4b8e-9f21-0a7c5e3d1b60",
"tuned": true
}
