Manage user module status
|
POST /api/v1/billing/user/manage/modules/status |
Allows individual modules to be activated or blocked independently of the user's overall status. Currently supported modules are: cameras (cameras), intercoms (intercoms), bridges (Bridge devices), and camera-agents (Camera (Agent) cameras).
Example request:
{
"login": "test@mail.com",
"module": "cameras",
"status": "blocked"
}
Behavior:
-
For
camerasthe camera access status is updated for the user and all their subusers, and a push notification is sent.cameras_status_changed. -
For
intercomsthe status applies to all the user's apartments. Blocking also clears the phone number and access permissions (key, code, face), as with blocking the user entirely. -
For
bridgescamera access status is updated for cameras connected through Bridge for the user and all their subusers, andblocked_atis set or removed for the user's Bridge devices. -
For
camera-agentsthe behavior is the same as forbridgesbut applies to cameras connected through Camera (Agent). -
For
bridges/camera-agents: when blocked, the permissionbridges/camera-agentsis also revoked from subusers. Reactivating the module does not restore it automatically: camera access (camera_user) and the primary user's permission are restored, but subuser permissions must be granted separately.
Method parameters
string login, User login
string module, User module. Allowed values: `cameras`, `intercoms`, `bridges`, `camera-agents`
string status, Module status. Allowed values: `active`, `blocked`
|
204 |
|
Successful response |
|
422 |
|
Returns a JSON error object. For more information, see General information > Validation. JSON
|