Javascript
import BrainbaseLabs from 'brainbase-labs'; const client = new BrainbaseLabs({ apiKey: 'My API Key', }); const voiceV1Deployment = await client.workers.deployments.voicev1.update('deploymentId', { workerId: 'workerId', }); console.log(voiceV1Deployment.id);
{ "id": "<string>", "phoneNumber": "<string>", "objective": "<string>", "startSentence": "<string>", "endSentence": "<string>", "voiceId": "<string>", "language": "<string>", "allowedTransferNumbers": "<string>", "functions": {}, "model": "<string>", "resourceKeys": "<string>", "wsBaseUrl": "<string>" }
API key authentication
Show child attributes
Updated voice v1 deployment