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.update('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 update a canary deploy configuration for an assistant.
Updates the existing canary deploy configuration with new version IDs and percentages. All old versions and percentages are replaces by new ones from this request.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const canaryDeployResponse = await client.ai.assistants.canaryDeploys.update('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?