To register custom event, use the command unit/registry_custom_event:
svc=unit/registry_custom_event¶ms={"date":<uint>, "x":<double>, "y":<double>, "description":<text>, "violation":<uint>, "itemId":<long>}
Parameters
| Name | Description |
|---|---|
| date | date |
| x | longitude |
| y | latitude |
| description | description |
| violation | violation: 0 – common event, 1 – violation |
| itemId | unit ID |
Response
{} /* empty object if execution successful, if not - error code */