Can SonarQube project administrators delete a project via the API? -


i'm using sonarqube 4.5.4. sonarqube's api documentation says post api/projects/destroy method requires administer system permission.

however, users having administer project role can delete projects via web interface selecting deletion option in project configuration menu.

why can't "project administrators" use api delete projects administer? or there way? i've tried , got error:

$ curl -u user:password -x post "https://sonar.cpqd.com.br/api/projects/destroy?id=123456789" {"err_code":401,"err_msg":"unauthorized"}% 

the link documentation provide points http://nemo.sonarqube.org/ running sonarqube 5.1, not version using.

fortunately, there no change regarding permissions checks on ws /api/projects/destroy between 4.5 , 5.1 , request not implemented: administer system permission required, project administer permission not enough.

in 5.2, ws replaced ws /api/project/delete requires 'administer system' permission or 'administer' permission on project.


Comments

Popular posts from this blog

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -

YouTubePlayerFragment cannot be cast to android.support.v4.app.Fragment -