Kavish
07/08/2025, 3:10 AMChiranjeet Mishra
07/08/2025, 5:35 PMbash
curl -X PATCH https://api.vapi.ai/tool/c66414dd-4fb7-4e5f-a53c-591ba7ecf241 \
-H "Authorization: Bearer <your-token>" \
-H "Content-Type: application/json" \
-d '{
"type": "sms",
"function": {
"name": "usmadin",
"description": "usmadin"
},
"messages": [
{
"type": "request-co"
}
]
}'
Ensure the "type" field value matches one of the supported tool types and includes all required fields for that type. Adjust your JSON structure if needed, especially for "function" and "messages" attributes. If you are still encountering issues, double-check that the token and URL are correct and the request parameters conform to the API specifications.