REST API - errorEvent

The table summarizes the REST API - errorEvent.

Note: This is the same as the REST API for event .

Request

Format
POST <baseurl>/audit/event
Query parameters iserrorevent=boolean (optional, default=false): Must be set to true if submitting an error event. See event .
Body EventBatch element (required): This element (from the EventCollectorAuditService schema) defines the content of the event being posted.

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?iserrorevent=true
Request body
<EventBatch>
  <Event>
  <correlationId>43</correlationId>
  <eventTimestamp>2012-08-27T00:00:00.000Z</eventTimestamp>
  <id> </id>
  <message>Custom error message</message>
  <messageId>CUSTOM_ERROR</messageId>
  <priority>HIGH</priority>
  <severity>ERROR</severity>
  </Event>
</EventBatch>