def modify_folders(
        self, folder_ids, color=None, flags=None, parent_folder=None,
        name=None, num_days=None, rgb=None, tags=None, view=None
    ):
        """
        :param folder_ids: list of ids
        :param color: color numeric; range 0-127; defaults to 0 if not present;
        client can display only 0-7
        :param flags: flags
        :param parent_folder: id of new location folder
        :param name: new name for the folder
        :param tags: list of tag names
        :param view: list of tag view
        """
        f_ids = self._return_comma_list(folder_ids)

        params = {'action': {
            'id': f_ids,
            'op': 'update',
        }}

        if color:
            params['action']['color'] = color
        if flags:
            params['action']['f'] = flags
        if parent_folder:
            params['action']['l'] = parent_folder
        if name:
            params['action']['name'] = name
        if tags:
            tn = self._return_comma_list(tags)
            params['action']['tn'] = tn
        if view:
            params['action']['view'] = view

        self.request('FolderAction', params)