def move_folder(self, to_folder):
if self.root:<EOL><INDENT>return False<EOL><DEDENT>if not to_folder:<EOL><INDENT>return False<EOL><DEDENT>url = self.build_url(<EOL>self._endpoints.get('<STR_LIT>').format(id=self.folder_id))<EOL>if isinstance(to_folder, ContactFolder):<EOL><INDENT>folder_id = to_folder.folder_id<EOL><DEDENT>elif isinstance(to_folder, str):<EOL><INDENT>folder_id = to_folder<EOL><DEDENT>else:<EOL><INDENT>return False<EOL><DEDENT>response = self.con.patch(url,<EOL>data={self._cc('<STR_LIT>'): folder_id})<EOL>if not response:<EOL><INDENT>return False<EOL><DEDENT>folder = response.json()<EOL>self.name = folder.get(self._cc('<STR_LIT>'), '<STR_LIT>')<EOL>self.parent_id = folder.get(self._cc('<STR_LIT>'), None)<EOL>return True<EOL>
Change this folder name

        :param to_folder: folder_id/ContactFolder to move into
        :type to_folder: str or ContactFolder
        :return: Moved or Not
        :rtype: bool