Tools creation from Dashboard is returning 400's
# support
s
Not sure if the right channel I am seeing tools call from UI failing with 400 as type is not being passed { "message": [ "property server should not exist", "property function should not exist", "type must be one of the following values: transferCall, endCall, dtmf, make, ghl, function", "type must be a string" ], "error": "Bad Request", "statusCode": 400 } Also I see UI making calls to https://staging-api.vapi.ai/tool
v
message has been deleted
@s4um1l It sounds like there may be an issue with the way the UI is formatting the requests it's sending to the VAPI server. The error messages indicate that there are unexpected properties (
server
and
function
) in the request, and that the
type
property is either missing or not a string as expected. To resolve this, you'll need to ensure that the requests being sent from the UI adhere to the expected schema. The
type
property should be included in the request body and set to one of the permitted values (
transferCall
,
endCall
,
dtmf
,
make
,
ghl
, or
function
). Additionally, the
server
and
function
properties should not be included in the request. If you have access to the UI code, please check the request payload to ensure it's structured correctly. If you don't have access or are unsure how to proceed, please ask support for more info on this.
You can continue this conversation by mentioning me in the message.
Got it. Tagging @User for additional help.
s
We are working on it
n
Do we know why it does this
s
It is fixed.
2 Views