...
| Description | Create an event |
URL | /api/events |
| Method | POST |
| Security | Requires Project Administrator role |
...
- Create an event on project Sonar (key = org.apachecodehaus.strutssonar:struts sonar) with administrator admin/admin:
- Category: Alert
- Name: myAlertName
Description: myAlertDescription
Code Block language none curl -u admin:admin -d "resource=org.apachecodehaus.strutssonar:strutssonar&category=Alert&name=myAlertName&description=myAlertDescription" http://localhost:9000/api/events
...
Parameter | Description | Required | Default Value | Value | ||
|---|---|---|---|---|---|---|
resource | id or key of the project | ?Yes | None | org.codehaus.sonar:sonar | ||
categoryCategory | Event category | ?Yes | None | Version | ||
name | Event name | Yes | None | |||
description | Event description | No | None | |||
| Autres paramètres ??? | ||||||
|

