Unable to delete votes via API

I want to use the API to delete votes as described in the documentation.
I can make GET requests to get the votes, but the DELETE request to delete a user’s vote returns a 405 response.
I’ve checked and these URLs are indeed present in the application’s routes.php file.

ok… I found the problem.

while all the requests in my python script worked with url like:

https://mycloud.com/apps/polls/api/v1.0/poll/{pollID}/votes

the DELETE request didn’t work without the index.php. The following url should therefore be used:

https://mycloud.com/index.php/apps/polls/api/v1.0/poll/{pollID}/user/{userId}