Create new event

POST {{baseUrl}}/events?includeShared=false

Creates an event with the provided content (Event model can be used).

\ If no typeId is given in the request, then a MindsphereStandardEvent will be created. A standard event has 5 additional fields beside the fields defined in the Event data model - description (string, not required, not filterable, updatable) - severity (integer, not required, filterable, updatable) - code (string, not required, filterable, updatable) - source (string, not required, filterable, updatable) - acknowledged (boolean, not required, filterable, updatable)

If there is a valid typeId in the request body then the event DTO must match to the corresponding event type given by the typeId. All the required fields from given 'typeId' and its parent eventTypes in the hierarchy should be included in the event payload when creating a custom event.

\ !Restriction! - After successful response, it may take 100ms to make it visible to the user.

Request Params

KeyDatatypeRequiredDescription
includeSharedbooleanTo specify if received event or eventTypes should be consider for the API operation.

Request Body

{"timestamp"=>"<string>", "entityId"=>"<uuid>", "typeId"=>"<string>", "correlationId"=>"<uuid>"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: Created

{&quot;id&quot;:&quot;urn:uuid:cace3262-619f-404c-e107-c53938f100d0&quot;,&quot;typeId&quot;:&quot;&quot;,&quot;correlationId&quot;:&quot;urn:uuid:e92e7a59-f52b-100e-7fa2-4d68498eb2b5&quot;,&quot;timestamp&quot;:&quot;commodo Ut sint&quot;,&quot;entityId&quot;:&quot;7ca215ac-2c60-5c26-0f63-55ade908c4ec&quot;,&quot;etag&quot;:19452075,&quot;_links&quot;:{&quot;self&quot;:{&quot;href&quot;:&quot;http://mpGbse.dpzuadd,JnXRmCBdeDW3i3CjLeOFhL8wuYNRBRjmuZ4X9GjDJzUSnI7MOnDR,TOYW+ZmR&quot;}},&quot;sharing&quot;:{&quot;modes&quot;:[&quot;RECEIVER&quot;,&quot;RECEIVER&quot;]}}