powered by
Update a filter
update_filter( filter_id = get_filter_id(filter_name = filter_name, token = token), filter_name, new_name = NULL, query = NULL, color = NULL, is_favorite = NULL, verbose = TRUE, token = get_todoist_api_token() )
id of the updated filter (invisible)
id of the filter
name of the filter (for lookup if filter_id not provided)
new name for the filter
new query string
new color
boolean to mark as favorite
boolean that make the function verbose
todoist API token
if (FALSE) { update_filter(filter_name = "Urgent Today", query = "today & p1 & #Work") }
Run the code above in your browser using DataLab