replaceMasterDevice

Replaces the old master-device by deleting it and makes the receiving device the new master-device. Also, through this API the end-user's new device discovers its account's uuid. After this operation the device should set its signal-keys.

Returns a HubPayload which encapsulates the outcome. In case it is successful the value is the account's info or the error if it is failure. If the error-code is 409 the operation may be retried with new registrationId.

Experimental API

This API is still under development, which means that the design of the declaration may (or may not) change in the future in some way that may break the code. See issue #327 to track the implementation.