Skip to main content
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' });

Authorizations

x-api-key
string
header
required

API key authentication

Path Parameters

workerId
string
required
deploymentId
string
required

Body

application/json
enabled
boolean
sampleRate
number
latencyEnabled
boolean
latencyThreshold
number
apiEnabled
boolean
apiThreshold
number
aiEnabled
boolean
aiThreshold
number
alertEmails
string[]

Response

Updated deployment overrides