Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3
Info
iconfalse
titleTable of Contents

Table of Contents
maxLevel1

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

Code Block
titleJSON
languagejavascript
{
    "id":"12",
    "k":"myKey",
    "nm":"myProject",
    "sc":"PRJ",
    "qu":"TRK"
}

Parameters

Parameter

Description

Required

Default ValueExample Value

key

Key of the project

Yes

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