registry_status_event
To register a unit status, use the unit/registry_status_event method.
svc=unit/registry_status_event¶ms={
"date":<uint>,
"description":<text>,
"itemId":<long>,
"params":<object>
}
Parameters
| Parameter | Description |
|---|---|
| date | Date |
| description | Description |
| itemId | Unit ID |
| params | Additional event parameters as key-value pairs. The keys and values are saved in the event as text. Optional. |
Response
If the request is completed successfully, an empty response is returned.
{ }
Otherwise, the response contains an error code.
Error codes
| Error code | Description |
|---|---|
| 4 | The user ID is invalid or the user has signed out. |
| 6 | Failed to register the unit status. |
| 7 | The user doesn’t have the Manage events access right to the unit. |