upload_file: Upload a file

View source: R/uploads.R

upload_fileR Documentation

Upload a file

Description

Upload a file

Usage

upload_file(
  file_path,
  file_name = basename(file_path),
  verbose = TRUE,
  token = get_todoist_api_token()
)

Arguments

file_path

path to the file to upload

file_name

name for the uploaded file (defaults to basename of file_path)

verbose

boolean that make the function verbose

token

todoist API token

Value

upload object with file_url

Examples

## Not run: 
upload <- upload_file("document.pdf")
# Use upload$file_url in a comment

## End(Not run)

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