change_account

Prerequisites

In order to transfer a unit into a subordinate account, the user who created the account must have the Manage account access right to their own account (ACL flag 0x100000000). The following access rights to the transferred unit are necessary:

  • View object and its basic properties (ACL flag 0x000001)
  • Manage access to this object (ACL flag 0x000004)
  • Delete object (ACL flag 0x000008)
  • Edit connectivity settings: device type, unique ID, phone, access password, message validity filtering (ACL flag 0x100000)
  • Delete messages (ACL flag 0x800000)
  • To transfer a unit into a subordinate account and change the unit creator in this account, use the account/change_account command:

    Copied!
    svc=account/change_account&params={"itemId":<long>,
                                       "resourceId":<long>}
    

    Parameters

    The request must contain the following parameters.

    Parameter Description
    itemId Unit ID.
    resourceId Account ID.

    Response

    If migration ends successfully, an empty object is returned.

    If some errors occur, the response has the following format:

    Copied!
    {
             "error":\<uint> 
    }
    

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

    Your message was sent. Thank you!

    Report a mistake

    An error occurred while submitting the form

    Download PDF file
    Download Word document

    See also