Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
application/json
Request model for creating or updating canary deploys.
List of version configurations
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const canaryDeployResponse = await client.ai.assistants.canaryDeploys.create('assistant_id', {
versions: [{ percentage: 1, version_id: 'version_id' }],
});
console.log(canaryDeployResponse.assistant_id);{
"assistant_id": "<string>",
"versions": [
{
"version_id": "<string>",
"percentage": 123
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}Endpoint to create a canary deploy configuration for an assistant.
Creates a new canary deploy configuration with multiple version IDs and their traffic percentages for A/B testing or gradual rollouts of assistant versions.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const canaryDeployResponse = await client.ai.assistants.canaryDeploys.create('assistant_id', {
versions: [{ percentage: 1, version_id: 'version_id' }],
});
console.log(canaryDeployResponse.assistant_id);{
"assistant_id": "<string>",
"versions": [
{
"version_id": "<string>",
"percentage": 123
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Request model for creating or updating canary deploys.
List of version configurations
Show child attributes
Was this page helpful?