[Maturing] Creates a new folder

dw_create_folder(
  name = "",
  organization_id = "",
  parent_id = "",
  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

Benedict Witzenberger

Examples

if (FALSE) { dw_create_folder(name = "New Folder") } # uses the preset API-key in the .Renviron-file