Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Response
Successful Response
The response is of type any.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const scheduledEvent = await client.ai.assistants.scheduledEvents.delete('event_id', {
assistant_id: 'assistant_id',
});
console.log(scheduledEvent);"<any>"If the event is pending, this will cancel the event. Otherwise, this will simply remove the record of the event.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const scheduledEvent = await client.ai.assistants.scheduledEvents.delete('event_id', {
assistant_id: 'assistant_id',
});
console.log(scheduledEvent);"<any>"Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Successful Response
The response is of type any.
Was this page helpful?