def rename(self, new_folder_name):
headers = self.headers<EOL>endpoint = '<STR_LIT>' + self.id<EOL>payload = '<STR_LIT>' + new_folder_name + '<STR_LIT>'<EOL>r = requests.patch(endpoint, headers=headers, data=payload)<EOL>if check_response(r):<EOL><INDENT>return_folder = r.json()<EOL>return self._json_to_folder(self.account, return_folder)<EOL><DEDENT>
Renames the Folder to the provided name.

        Args:
            new_folder_name: A string of the replacement name.

        Raises:
            AuthError: Raised if Outlook returns a 401, generally caused by an invalid or expired access token.

        Returns:
            A new Folder representing the folder with the new name on Outlook.