POST api/Mossos/Events
Request Information
URI Parameters
None.
Body Parameters
M2MEventRequestDataModel| Name | Description | Type | Additional information |
|---|---|---|---|
| DeviceIDList | Collection of integer |
None. |
|
| StartDateTime | date |
None. |
|
| EndDateTime | date |
None. |
Request Formats
application/json, text/json
Sample:
{
"DeviceIDList": [
1,
2
],
"StartDateTime": "2026-04-03T16:49:51.9945399+02:00",
"EndDateTime": "2026-04-03T16:49:51.9945399+02:00"
}
application/xml, text/xml
Sample:
<M2MEventRequestDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Manager.WebAPI.Models">
<DeviceIDList xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</DeviceIDList>
<EndDateTime>2026-04-03T16:49:51.9945399+02:00</EndDateTime>
<StartDateTime>2026-04-03T16:49:51.9945399+02:00</StartDateTime>
</M2MEventRequestDataModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of M2MEventDataModel| Name | Description | Type | Additional information |
|---|---|---|---|
| EventID | integer |
None. |
|
| DeviceID | integer |
None. |
|
| Name | string |
None. |
|
| Latitude | decimal number |
None. |
|
| Longitude | decimal number |
None. |
|
| DateTime | string |
None. |
|
| State | integer |
None. |
|
| Speed | decimal number |
None. |
|
| Course | decimal number |
None. |
|
| Parameter | string |
None. |
Response Formats
application/json, text/json
Sample:
[
null,
{
"EventID": 1,
"DeviceID": 2,
"Name": "sample string 3",
"Latitude": 4.1,
"Longitude": 5.1,
"DateTime": null,
"State": 0,
"Speed": 0.0,
"Course": 0.0,
"Parameter": null
}
]
application/xml, text/xml
Sample:
<ArrayOfM2MEventDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Manager.WebAPI.Models">
<M2MEventDataModel i:nil="true" />
<M2MEventDataModel>
<Course>0</Course>
<DateTime i:nil="true" />
<DeviceID>2</DeviceID>
<EventID>1</EventID>
<Latitude>4.1</Latitude>
<Longitude>5.1</Longitude>
<Name>sample string 3</Name>
<Parameter i:nil="true" />
<Speed>0</Speed>
<State>0</State>
</M2MEventDataModel>
</ArrayOfM2MEventDataModel>