Skip to main content
PUT
/
api
/
workers
/
{workerId}
/
tests
/
{testId}
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.tests.update('testId', { workerId: 'workerId' });
{}

Authorizations

x-api-key
string
header
required

API key authentication

Path Parameters

workerId
string
required
testId
string
required

Body

application/json
name
string
description
string
checkpoints
object[]
testMode
string
systemPrompt
string
flowId
string

Response

200

Test updated successfully