Versions Compared

Key

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

...

DescriptionCreate an event

URL

/api/events

HTTP MethodPOST
Security

Requires Project Administrator role

Examples

Use CaseExample Request
Create an event on project Sonar (key = org.codehaus.sonar:sonar) with administrator admin/admin:
  • Category: Alert
  • Name: myAlertName
  • Description: myAlertDescription

...

languagenone

curl

...

-u

...

admin:admin

...

-d

...

"resource=org.codehaus.sonar:sonar&category=Alert&name=myAlertName&description=myAlertDescription"

...

http://localhost:9000/api/events

Parameters

Parameter

Description

Required

Default Value

Example Value

resource

id or key of the project

Yes

None

org.codehaus.sonar:sonar

category

Event category

Yes

None

Alert 

name

Event name

YesNone abc

description

Event description

NoNone blabla