https://retellai.com/?utm_source=discord&utm_medium=seo logo
When attempting to delete the parameters from any ...
# ❓・ai-evy-support
b
@AI Evy When attempting to delete the parameters from any of the functions, ReTell returned a 400 error. Fortunately, I was able to get around it by adding the query parameters on top of the body params, which should be fine since the system only uses query parameters now.
a
Thanks for tagging me @byredyre. I'll look through relevant sources and get back to you shortly.
### Answer Your workaround makes sense. Based on a similar issue reported in the community, the 400 error when deleting parameters from custom functions can occur if the JSON schema isn't properly cleared after removing parameters [(1) ]() . Another user found that updating too frequently can also trigger a 400 error even without changes . Your solution of using query parameters instead of body parameters is valid. According to the documentation, custom functions support both query parameters and body parameters (the latter only for POST, PATCH, and PUT requests) [(2) ]() [(3) ]() . Query parameters can be defined with static or dynamic variable values and are appended to your endpoint URL . Since you're now using query parameters exclusively, this approach should work fine for GET requests, which don't support body parameters anyway . If you continue experiencing issues with parameter deletion, try ensuring the JSON schema is completely removed before saving the function changes [(1) ]() .
​ To learn more, see the sources I considered: [[1] Issue creating function Error 400](https://discord.com/channels/1186424376300679209/1415753289714237460) [[2] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[3] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.