REST API - event

The table summarizes the REST API - event.

Request

Format
POST <baseurl>/audit/event
Query parameters iserrorevent=boolean (optional, default=false): Whether the event is an error event. See errorEvent .
Body EventBatch element (required): This element (from the EventCollectorAuditService schema) defines the content of the event or events being posted. Even if you are posting only a single event, the eventBatch wrapper is required. See also REST API - batchEvent .

Response

JSON Returns a 200 OK response header with an empty response body.
XML Returns a 200 OK response header with an empty response body.

Example

Request
POST <baseurl>/audit/event
Request body
<EventBatch>
<event>
     <correlationId>a</correlationId>
     <messageId>WPCORE_DEPLOY_DEPLOY_CHANNEL</messageId>
     <message>Deployed Channel</message>
     <eventTimestamp>2013-01-01T12:00:00.000Z</eventTimestamp>
     <severity>AUDIT</severity>
     <priority>LOW</priority>
</event>
</EventBatch>