Skip to main content
POST
/
api
/
workers
/
{workerId}
/
deployments
/
voice
/
{deploymentId}
/
migrate-engine
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.migrateEngine('deploymentId', { workerId: 'workerId' });

Authorizations

x-api-key
string
header
required

API key authentication

Path Parameters

workerId
string
required
deploymentId
string
required

Body

application/json
targetVersion
enum<string>
default:v2
Available options:
v1,
v2

Response

Migration result (migrated or skipped)