Delete API call

Hi, I am trying to make a DELETE call to an API where the URL format is as follows:

https://www.myapi.com/file/filename.csv

This works if I pass the full string to the API, but I would like the filename at the end of the URL to be specified as a parameter. Does Bubble’s API connector support this format? If so, what should Key and Value be?

Many thanks

Andrew.

Idk if this answer your problem. Yes it does just use as param like this

image

Thanks Anthony, but doing this gives the error message ‘undefined error: the parameter filename cannot be empty’.

Is there another way to handle this?

Best wishes

Andrew.

uncheck the private so it’s dynamic and then u can use your file name as parameter

Edit : Btw if you wanna try it on different filetype delete the “.csv” and try to get the file name and also the type as parameter for [filename]

Same problem unfortunately: ‘parameter filename.csv cannot be empty’. Here are my settings:

Regards

Andrew.

1 Like

Found it! Just put value in square brackets in the URL, use value as the key, and set the value to the filename:

2 Likes