moveRooms
Moves multiple rooms identified by the specified list of room IDs from one container to another.
This method transfers the rooms specified in the roomIds
list from the container identified by oldContainerId
to the container identified by newContainerId
. If all rooms are moved successfully, the method returns a RainbowResult indicating complete success. In the case of partial success (where some rooms are moved and others are not), the RainbowResult will indicate success, but the result will include a list of InvalidRoom objects detailing any rooms that could not be moved. If all moves fail, the RainbowResult will indicate failure.
Return
A RainbowResult containing a pair of the updated Container after the move and a list of InvalidRoom for any rooms that could not be moved. The RainbowResult.isSuccess will be true
for both complete and partial success; in the case of partial success, the list will contain the invalid rooms that were not moved.
Parameters
The unique identifier of the container from which the rooms will be moved.
The unique identifier of the container to which the rooms will be moved.
A list of unique IDs for the rooms to move.