Save_voice for helm mcp: the picked take becomes its designed voice's clip, set on the asset
const url = 'http://localhost:8300/v1/studio/magic/boards/example/assets/example/voice';const options = { method: 'POST', headers: { 'x-api-key': '<x-api-key>', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"revision":1,"take_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","consent":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8300/v1/studio/magic/boards/example/assets/example/voice \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'x-api-key: <x-api-key>' \ --data '{ "revision": 1, "take_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "consent": true }'consent: true is the voice-rights OK (the card’s Yes in the app); without it 422 consent: say you have the right to use this voice (consent: true). 200 {voice_id, revision, summary}, one board revision. 409 when revision is not the current one; 422 for a take not made by design_voice or under 3 s.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”A Magic board’s UUID (another user’s or malformed = 404)
A lane’s, block’s, transition’s or asset’s id, unique on the board (lanes, blocks and transitions share one namespace); studio makes b<n>, l<n>, t<n>
A character of the board
Request Bodyrequired
Section titled “Request Bodyrequired”Save_voice’s input with the asset in the path and the voice-rights OK
object
True: you have the right to use this voice (the card’s Yes in the app)
Example generated
{ "revision": 1, "take_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "consent": true}Responses
Section titled “Responses”Kept
object
Example generated
{ "voice_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "revision": 1, "summary": "example"}Missing or invalid x-api-key (Kong), or missing/invalid/expired/revoked bearer token
object
Example generated
{ "detail": "example"}Not found
object
Example generated
{ "detail": "example"}The resource’s state forbids this
object
Example generated
{ "detail": "example"}Invalid input
object
Example generated
{ "detail": "example"}