powered by
Update a label
update_label( label_id = get_label_id(label_name = label_name, token = token, create = FALSE), label_name, new_name = NULL, color = NULL, is_favorite = NULL, verbose = TRUE, token = get_todoist_api_token() )
id of the updated label (invisible)
id of the label
name of the label (for lookup if label_id not provided)
new name for the label
new color for the label
boolean to mark as favorite
boolean that make the function verbose
todoist API token
if (FALSE) { update_label(label_name = "urgent", new_name = "very_urgent") }
Run the code above in your browser using DataLab