Versions Compared

Key

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

 

 

Info
iconfalse
titleTable of Contents

Table of Contents
maxLevel1

Get a List of User Properties

...

Parameter

Description

Required

Default Value

id

Key of the user property

No

None
formatResponse formats: xml or jsonNoxml

Create

...

a User Property

DescriptionCreate an event.a user property

URL

/api/eventsuser_properties

MethodPOST
 SecurityRequires Project Global Administrator role to create an event.

Examples

  1. Create an event on project org

    .

    apache

    .

    struts:struts with administrator admin/admin:
  2. Category: Alert
  3. Name: myAlertName
  4. Description: myAlertDescription
     

    .:

    Code Block
    languagenone
    curl -u admin:admin -d "resource=org.apache.struts:struts&category=Alert&name=myAlertName&description=myAlertDescription" http://localhost:9000/api/events
    xxxx

Parameters

Parameter

Description

Required

Default Value

Value

resource

id or key of the project

?

 

org.codehaus.sonar:sonar

category

Category

?

 

Version
Alert 

name

 

   

description

     

Update a User Property

DescriptionUpdate a user property

URL

/api/user_properties

MethodPUT
SecurityRequires Global Administrator role

Examples

  1. ...:

    Code Block
    languagenone
    xxxx

Parameters

Parameter

Description

Required

Default Value

Value

     

 

...

Note
To be reviewed and completed

Delete a User Property

DescriptionDelete a user property

URL

/api/user_properties

MethodDELETE
SecurityRequires Global Administrator role

Examples

  1. ...:

    Code Block
    languagenone
    xxxx

Parameters

Parameter

Description

Required

Default Value

Value