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
Key | Datatype | Required | Description |
---|---|---|---|
includeShared | boolean | To specify if received event or eventTypes should be consider for the API operation. |
Request Body
{"timestamp"=>"<string>", "entityId"=>"<uuid>", "typeId"=>"<string>", "correlationId"=>"<uuid>"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"id":"urn:uuid:cace3262-619f-404c-e107-c53938f100d0","typeId":"","correlationId":"urn:uuid:e92e7a59-f52b-100e-7fa2-4d68498eb2b5","timestamp":"commodo Ut sint","entityId":"7ca215ac-2c60-5c26-0f63-55ade908c4ec","etag":19452075,"_links":{"self":{"href":"http://mpGbse.dpzuadd,JnXRmCBdeDW3i3CjLeOFhL8wuYNRBRjmuZ4X9GjDJzUSnI7MOnDR,TOYW+ZmR"}},"sharing":{"modes":["RECEIVER","RECEIVER"]}}