Api/project_analyses/delete returns a 405 HTTP method POST is required

Using the sonarcloud.io, I’m trying to integrate my script to delete old events from history. However, when I’m calling the api/project_analyses/delete with the analysis parameter and the user token, the server returns a 405 error, with the message: HTTP method POST is required

Steps to reproduce it:

  • Generate a token
  • Get an analysis id
  • Call the api/projec_analyses/delete using this IP and the token
  • Verify the error

#bug:web_api

Hi,

Sorry for responding late.
As stated in the documentation, the API api/project_analyses/delete accept only POST http request, not DELETE (I know, it’s confusing).

Best,

1 Like