deep-jade
deep-jade15mo ago

Tools creation from Dashboard is returning 400'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
6 Replies
Vapi
Vapi15mo ago
Relevant threads
These are relevant threads you might take a look into before continuing further: - <#1245064296921170010> - <#1234730930695049228> - <#1247817990330646581> - <#1247553809102798889> - <#1248027391264165989> - <#1242213359600930857> - <#1248762647814606949> - <#1247544016275505192> - <#1243580244439335023> - <#1243957322439458836> - <#1246015100100415488> - <#1247240628866388099> - <#1247531659163598859> - <#1242315416307761153> - <#1245771592819015730> - <#1237377618538659870> - <#1239945056937443510> - <#1248603965180870666> - <#1247598831395274844> - <#1233798511192051823> - <#1245889476589256735> - <#1248675305003028490> - <#1248212984518672435> - <#1248276789508182076> - <#1244035082243539087> - <#1247328249072324678> - <#1249076568983081091> - <#1249244985946144798> - <#1249307086265782432> - <#1249356085458898966> - <#1249608410144571434> - <#1249812719444561962> - <#1250170796559700098> - <#1250213297572024440> - <#1250776407265640458> - <#1250803213985124382> - <#1250804289597739082> - <#1250867745189527713> - <#1251266975867605062> - <#1251564248430018581> - <#1251581002669887518> - <#1252132386037301319> - <#1252261538258092124> - <#1252834508907089920> - <#1253005612132859914> - <#1253049130620555264> - <#1253107301317873766>
Vapi
Vapi15mo ago
@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 @Vapi Team for additional help.
blank-aquamarine
blank-aquamarine15mo ago
No description
correct-apricot
correct-apricot15mo ago
We are working on it
blank-aquamarine
blank-aquamarine15mo ago
Do we know why it does this
correct-apricot
correct-apricot15mo ago
It is fixed.

Did you find this page helpful?