Versions Compared

Key

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

...

Parameter

Description

Required

Default Value

Value

id

Key of the property

No

Get all properties if not set

sonar.core.codeCoveragePlugin

resource

id or key of the project

No

None

org.codehaus.sonar:sonar

formatResponse formats: xml or jsonNoxml 

Create or Update a Property

DescriptionCreate or update a property

URL

/api/properties

MethodPOST
 Security

Requires Global Administrator role

Examples

  1. Create a or update property 'myProperty' with value 'myValue' by user admin/admin:

    Code Block
    languagenone
    curl -u admin:admin -X POST http://localhost:9000/api/properties/?id=myProperty&value=myValue
     
    Example to create a property with the content of a file:
    curl -u <login>:<password> -X POST  http://localhost:9000/api/properties/?id=<key> -v -T <path/to/file>

...