Learn R Programming

rtodoist (version 0.4.0)

update_task: Update a task

Description

Update a task

Usage

update_task(
  task_id,
  content = NULL,
  description = NULL,
  priority = NULL,
  due_string = NULL,
  due_date = NULL,
  labels = NULL,
  verbose = TRUE,
  token = get_todoist_api_token()
)

Value

id of the updated task (invisible)

Arguments

task_id

id of the task to update

content

new content/title for the task

description

new description for the task

priority

priority (1-4, 4 being highest)

due_string

due date as string (e.g., "tomorrow", "every monday")

due_date

due date as date (format: YYYY-MM-DD)

labels

vector of label names

verbose

boolean that make the function verbose

token

todoist API token

Examples

Run this code
if (FALSE) {
update_task("12345", content = "Updated task name")
}

Run the code above in your browser using DataLab