add_label: Add a new label

View source: R/labels.R

add_labelR Documentation

Add a new label

Description

Add a new label

Usage

add_label(
  name,
  color = NULL,
  is_favorite = FALSE,
  verbose = TRUE,
  token = get_todoist_api_token()
)

Arguments

name

name of the label

color

color of the label

is_favorite

boolean to mark as favorite

verbose

boolean that make the function verbose

token

todoist API token

Value

id of the new label

Examples

## Not run: 
add_label("urgent")
add_label("work", color = "red")

## End(Not run)

rtodoist documentation built on Feb. 14, 2026, 5:06 p.m.