import BrainbaseLabs from 'brainbase-labs';const client = new BrainbaseLabs({ apiKey: process.env['BRAINBASE_LABS_API_KEY'], // This is the default and can be omitted});await client.workers.deployments.voice.customWebhooks.update('webhookId', { workerId: 'workerId', deploymentId: 'deploymentId',});
Voice Deployments
Update a custom webhook
PATCH
/
api
/
workers
/
{workerId}
/
deployments
/
{deploymentId}
/
voice
/
customWebhooks
/
{webhookId}
JavaScript
import BrainbaseLabs from 'brainbase-labs';const client = new BrainbaseLabs({ apiKey: process.env['BRAINBASE_LABS_API_KEY'], // This is the default and can be omitted});await client.workers.deployments.voice.customWebhooks.update('webhookId', { workerId: 'workerId', deploymentId: 'deploymentId',});