Skip to main content

Delete a scheduled event

DELETE 
/ai/assistants/:assistant_id/scheduled_events/:event_id

If the event is pending, this will cancel the event. Otherwise, this will simply remove the record of the event.

Request

Path Parameters

    assistant_id Assistant Idrequired
    event_id Event Idrequired

Responses

200: Successful Response

422: Validation Error

Request samples


curl -L -X DELETE 'https://api.telnyx.com/v2/ai/assistants/:assistant_id/scheduled_events/:event_id' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'

Response samples


{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}