update_flags

To set the flags of account settings, use the account/update_flags method:

Copied!
svc=account/update_flags&params={"itemId":<long>,
                  "flags":<long>,
                  "blockBalance":<double>,
                  "denyBalance":<double>}

Parameters

The request must contain the following parameters:

Parameter Description
itemId Resource (account) ID.
flags Account settings flags. Only the 0x01, 0x02, and 0x20 flags can be set, other bits are ignored. Read more about account flags on the get_account_data page.
blockBalance Optional. The balance value at which the account is blocked. Applied only if the 0x01 flag is set.
denyBalance Optional. The balance value at which the paid services become unavailable. Applied only if the 0x02 flag is set.

Response

If flags are updated successfully, an empty object is returned.

Otherwise, an error code is returned.

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