Full documentation for SonarQube has moved to a new location: http://docs.sonarqube.org/display/SONAR

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Current »

Table of Contents

Delete a Project

DescriptionDelete a project

URL

/api/projects/<project_id>

HTTP MethodDELETE

Security

Requires Project Administrator role

Examples

Use CaseExample Request
Delete project "myProject" with user "admin/admin"

curl -u admin:admin -X DELETE 'http://localhost:9000/api/projects/myProject'

Parameters

Parameter

Description

Required

Default ValueExample Value

project_id

id or key of the project

Yes

Noneorg.codehaus.sonar:sonar

Provision a Project

DescriptionProvision a project

URL

/api/projects/create

HTTP MethodPOST

Security

Requires Provision Projects permission

Available sinceVersion 4.0

Examples

Use CaseExample Request
Provision project whose key is "myKey" and name is "myProject" with user "admin/admin"

curl -u admin:admin -X POST 'http://localhost:9000/api/projects/create?key=myKey&name=myProject' 

Response Format

JSON

Parameters

Parameter

Description

Required

Default ValueExample Value

key

Key of the project

Yes

Noneorg.codehaus.sonar:sonar
nameName of the projectYesNoneMy%20Project
  • No labels