Skip to contents

Adds a new base on a NocoDB server via its POST /api/v2/meta/bases API endpoint.

Usage

create_base(
  title = pal::pkg_config_val("base_title"),
  description = NULL,
  color = "#36BFFF",
  show_null_and_empty_in_filter = TRUE,
  hostname = pal::pkg_config_val("hostname"),
  email = pal::pkg_config_val("email"),
  password = pal::pkg_config_val("password"),
  api_token = pal::pkg_config_val("api_token")
)

Arguments

title

Base title. A character scalar.

description

Base description. A character scalar.

color

Color to use for the base icon. A hexadecimal color code like "#36BFFF".

show_null_and_empty_in_filter

Whether or not to distinguish NULLs from empty values in column filters. If FALSE, NULL and empty fields are treated alike.

hostname

NocoDB server hostname. A character scalar.

email

E-mail address of the NocoDB user to authenticate with.

password

Password of the NocoDB user to authenticate with.

api_token

NocoDB API token. Takes precedence over email and password if provided.

Value

A tibble with metadata about the newly created NocoDB base, invisibly.