!Mohammad Ali
03/07/2025, 9:21 AMk
curl -X PATCH "https://api.vapi.ai/tool/{toolId}" \
-H "Authorization: Bearer {your private token}" \
-H "Content-Type: application/json" \
-d '{
"function": {
"name": "booked_call",
"description": "representing the booked call by creating a card on the dispatch.",
"parameters": {
"type": "object",
"required": [
"Date",
"Start Time",
"End Time"
],
"properties": {
"date": {
"type": "string",
"description": "the date the customer wants to book the appointment in"
},
"end_time": {
"type": "string",
"description": "the End time of the appointment \"hh:mm\""
},
"start_time": {
"type": "string",
"description": "the start time of the appointment \"hh:mm\""
}
}
}
}
}'
this will help you do it by using it on any command prompt for now, just don't forget to use your own values.