Skip to contents
  • Use upload_file() to create a new file in a workspace.

  • Use upload_file_version() to create a new version of an existing document.

Usage

upload_file(
  file,
  uuid,
  name = NULL,
  description = NULL,
  parent_uuid = NULL,
  use_proxy = FALSE
)

upload_file_version(file, uuid, use_proxy = FALSE)

Arguments

file

File path of document to upload

uuid

For upload_file(), a workspace UUID to create the new document in. For upload_file_version(), an asset UUID to create a new version of.

name

Name to give document. If this isn't provided, the name of the file will be used.

description

Optional description of document.

parent_uuid

UUID of folder in the workspace to create the new document within. If not supplied, the document will be created in the top-level of the workspace.

use_proxy

Logical to indicate whether to use proxy

Value

API response (invisibly)

Details

More details on the endpoints used by these functions are available in the API documentation: