Alex
01/24/2025, 2:28 PMVapi
01/24/2025, 2:31 PMVapi
01/24/2025, 2:31 PMAlex
01/24/2025, 2:32 PMAlex
01/24/2025, 2:33 PMAlex
01/24/2025, 2:42 PMVapi
01/24/2025, 2:42 PMtools
property should not exist in the body of your request. This suggests that the API is not expecting a tools
array.
Typically, a PATCH request is used to update specific fields of a resource, and the body of the request should contain only the fields that you want to update, formatted according to the API's expected schema.
Based on the information you've provided, it seems you are trying to update a function related to call transfer. However, without the exact API documentation, it's difficult to provide the correct structure for your request.
Here's a general approach you can take to troubleshoot this issue:
1. Review the API documentation for the transferCall
function to understand the expected request format for updating the function.
2. Ensure that the body of your PATCH request only contains the fields that are allowed and expected by the API.
3. Double-check that you are using the correct endpoint for updating the transferCall
function.
4. Verify that your bearer token is valid and has the necessary permissions to make the update.
If you can provide the specific section of the documentation that describes how to update the transferCall
function, I can give you more targeted advice. Otherwise, please refer to the documentation for the correct request format or reach out to support for more detailed assistance.Alex
01/24/2025, 2:43 PMVapi
01/24/2025, 2:43 PMtransferCall
function.
However, based on the error message you received, it's clear that the API endpoint you're trying to PATCH does not accept a tools
property in the request body. Here are a few steps you can take to resolve this:
1. **Review the Documentation**: Go back to the documentation and look for the section that explains how to update the transferCall
function. Pay close attention to the structure of the request body and the properties that are expected.
2. **Correct Request Format**: Make sure your PATCH request follows the correct format as per the documentation. This typically involves including only the properties that need to be updated and ensuring they are in the correct hierarchy.
3. **API Endpoint**: Confirm that you are using the correct API endpoint for updating the transferCall
function. The endpoint in your request should match the one provided in the documentation for this specific operation.
4. **Authentication**: Verify that your bearer token is correct and has the necessary permissions to perform the PATCH operation.
5. **Contact Support**: If you've double-checked the documentation and your request still isn't working, it might be best to contact the API support team for further assistance. They can provide you with specific guidance based on the latest API updates and changes.
If you can share the exact documentation or the relevant excerpt, I would be more than happy to help you interpret it and construct the correct PATCH request. Otherwise, please refer to the steps above to troubleshoot the issue.Shubham Bajaj
01/24/2025, 10:02 PMcurl -X PATCH https://api.vapi.ai/assistant/assistant-id \
-H "Authorization: Bearer token-here" \
-H "Content-Type: application/json" \
-d '{
"model": {
"provider": "openai",
"tools": []
}
}'
Do let me know how it goes for you.Shubham Bajaj
01/27/2025, 6:54 AM