def move_index(self, src_index_name, dst_index_name):
        """
        Move an existing index.

        @param src_index_name the name of index to copy.
        @param dst_index_name the new index name that will contains a copy
            of src_index_name (destination will be overriten if it already exist).
        """
        path = '/1/indexes/%s/operation' % safe(src_index_name)
        request = {'operation': 'move', 'destination': dst_index_name}
        return self._perform_request(self.write_hosts, path, 'POST',
                                     body=request)
dataset/ETHPy150Open algolia/algoliasearch-client-python/algoliasearch/client.py/Client.move_index/original