registry_status_event

To register a unit status, use the unit/registry_status_event method.

Copied!
svc=unit/registry_status_event&params={
  "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.

Copied!
{ }	

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.

If you find a mistake in the text, please select it and press Ctrl+Enter.