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.defaultChecks.update('deploymentId', { workerId: 'workerId' });
Default Checks
Create or update deployment-level default checks overrides
PUT
/
api
/
workers
/
{workerId}
/
deployments
/
{deploymentId}
/
default-checks
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.defaultChecks.update('deploymentId', { workerId: 'workerId' });