Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Use CaseExample Request
Delete the java quality profile Sonar%way'Sonar way'

curl -u admin:admin -d "language=java&name=Sonar way" -X POST http://localhost:9000/api/profiles/destroy

...

Parameter

Description

Required

Default ValueExample Value

language

Profile language

Yes

Nonejava
nameProfile nameYesNoneSonar way

Set a Quality Profile as Default

DescriptionDelete a quality profile

URL

/api/profiles/set_as_default

HTTP MethodPOST
Security

Requires Global Administrator role

Available sinceSonar 3.3

Examples

Use CaseExample Request
Set the java quality profile 'Sonar way' as default

curl -u admin:admin -d "language=java&name=Sonar way" -X POST http://localhost:9000/api/profiles/set_as_default

Parameters

Parameter

Description

Required

Default ValueExample Value

language

Profile language

Yes

Nonejava
nameProfile nameYesNoneSonar way