ema
05/15/2024, 1:55 PMVapi Support
05/15/2024, 1:55 PMVapi Support
05/15/2024, 1:55 PMjson
{
"message": "Invalid schema for function 'PlaceTakeoutOrder': In context=('properties', 'items'), array schema missing items",
"type": "invalid_request_error",
"param": null,
"code": null
}
[(1)]()
Make sure your function's parameters are correctly structured and all required fields are included.ema
05/15/2024, 2:12 PMVapi Support
05/15/2024, 2:12 PMVapi Support
05/15/2024, 2:12 PMbash
curl -X OPTIONS https://api.vapi.ai/your-endpoint \
-H "Authorization: Bearer <your-token>"
Replace "https://api.vapi.ai/your-endpoint"
with the actual endpoint you want to query and "<your-token>"
with your Vapi authorization token.
For more information about setup and configuration, you can refer to the Vapi documentation [(1)]() , [(2)]() .ema
05/15/2024, 2:25 PMVapi Support
05/15/2024, 2:25 PMVapi Support
05/15/2024, 2:25 PMVapi Support
05/15/2024, 2:25 PMpython
import requests
url = "https://api.vapi.ai/assistants/{assistantId}/functions/{functionId}"
headers = {
"Authorization": "Bearer <your_access_token>",
"Content-Type": "application/json"
}
payload = {
"serverUrl": "https://your-server-url.com"
}
response = requests.put(url, headers=headers, json=payload)
print(response.json())
Replace "{assistantId}"
, "{functionId}"
, and "<your_access_token>"
with your actual assistant ID, function ID, and access token, respectively. This example updates the server URL for a function call [(1)]() .