unload
To unload all events from the session, use the events/unload method.
Use this method before calling events/load to load events for a different period.
Endpoint
svc=events/unload¶ms={
"itemId": <long>
}
Parameters
| Parameter | Description |
|---|---|
itemId |
Unit ID. Optional. If not specified, events for all units are unloaded. |
Response
If the request is completed successfully, an empty response is returned.
{ }
Otherwise, an error code is returned.
Error codes
| Code | Description |
|---|---|
| 1 | Invalid or obsolete request SID. |
| 4 | Parameter validation error. |
| 7 | The event service is unavailable. |