dw_create_folder: Creates a new folder

View source: R/dw_create_folder.R

dw_create_folderR Documentation

Creates a new folder

Description

\lifecycle

maturing Creates a new folder

Usage

dw_create_folder(
  name = "",
  organization_id = NULL,
  parent_id = NULL,
  api_key = "environment"
)

Arguments

name

Required. Specify the name for the newly created folder.

organization_id

Optional. ID of organization if creating a folder for a organization that you're working with. Defaults to user.

parent_id

Optional. ID of parent folder if creating a subfolder.

api_key

Optional. A Datawrapper-API-key as character string. Defaults to "environment" - tries to automatically retrieve the key that's stored in the .Reviron-file by datawrapper_auth.

Value

Returns a success message

Note

This function builds a body for a API-call to the Datawrapper-API, and creates a new folder for a user or a team.

Author(s)

Benedict Witzenberger

Examples


## Not run: 

dw_create_folder(name = "New Folder")


## End(Not run) # uses the preset API-key in the .Renviron-file


munichrocker/DatawRappr documentation built on March 20, 2024, 6:08 a.m.