Skip to contents

Synchronizes the specified data source's schema between its external and its NocoDB-internal state via the POST /api/v2/meta/bases/{id_base}/meta-diff/{id_data_src} API endpoint.

Usage

sync_data_src(
  id_data_src,
  id_base = base_id(origin = origin, email = email, password = password, api_token =
    api_token),
  origin = pal::pkg_config_val("origin"),
  email = pal::pkg_config_val("email"),
  password = pal::pkg_config_val("password"),
  api_token = pal::pkg_config_val("api_token")
)

Arguments

id_data_src

character(1)
NocoDB data source identifier as returned by data_src_id().

id_base

character(1)
NocoDB base identifier as returned by base_id().

origin

character(1)
NocoDB server origin.

email

character(1)
E-mail address of the NocoDB user to authenticate with.

password

character(1)
Password of the NocoDB user to authenticate with.

api_token

character(1)
NocoDB API token. Takes precedence over email and password if provided.

Value

id_data_src, invisibly.

See also