Enable/disable account

To enable/disable an account, use the command account/enable_account:

svc=account/enable_account&params={"itemId":<long>,
				   "enable":<bool>}

Parameters

Name Description
itemId resource (account) ID
enable mode: 0 - disable, 1 - enable

Response

{}	/* empty object if execution successful, if not - error code */

Errors

Code Value
1 invalid session
2 invalid service name
3 invalid result
4 invalid format or value of parameters
6 error enabling/disabling account
7 access denied
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2021 Gurtam