code: def rename(self, new_folder_name):
          
          headers = self.headers
          endpoint = 'https://outlook.office.com/api/v2.0/me/MailFolders/' + self.id
          payload = '{ "DisplayName": "' + new_folder_name + '"}'
  
          r = requests.patch(endpoint, headers=headers, data=payload)
  
          if check_response(r):
              return_folder = r.json()
              return self._json_to_folder(self.account, return_folder)
docs: 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.