REST API - batchEvent

The table summarizes the REST API - batchEvent. Note that it is the same as the REST API for event.

Request

Format
POST <baseurl>/audit/event
Query parameters iserrorevent=boolean (optional, default=false): Whether the events are error events. See errorEvent .
Body EventBatch element (required): This element (from the EventCollectorAuditService schema) defines the content of the batch of events 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
Request body
<EventBatch>
  <event>
    <correlationId>23</correlationId>
    <eventTimestamp>2012-08-27T00:00:00.000Z
    </eventTimestamp>
    <id>pvm:0a101f</id>
    <message>Deployed Channel</message>
    <messageId>WPCORE_DEPLOY_DEPLOY_CHANNEL</messageId>
    <priority>LOW</priority>
    <severity>AUDIT</severity>
    <attribute>
    <attributeId>36</attributeId>
    <attributeName>ManagedObjectID</attributeName>
    <value>CH10</value>
    </attribute>
  </event>
  <event>
    <correlationId> </correlationId>
    <eventTimestamp>2012-08-27T00:00:02.000Z
    </eventTimestamp>
    <id>pvm:0a1026</id>
    <message>Deployed Page Flow Process</message>
    <messageId>DEPLOY_PAGEFLOW</messageId>
    <priority>LOW</priority>
    <severity>AUDIT</severity>
  </event>
</EventBatch>