Skip to contents

Updates the configuration of the specified plugin on a NocoDB server via its PATCH /api/v1/db/meta/plugins/{id_plugin} API endpoint.

Usage

update_plugin(
  id_plugin,
  config = NULL,
  activate = NULL,
  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_plugin

character(1)
NocoDB plugin identifier as returned by plugin_id().

config

list()
Plugin configuration. If NULL, the plugin's configuration is left untouched.

activate

logical(1)
Whether or not to activate the plugin. If NULL, the plugin's activation status is left untouched.

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

A tibble with metadata about the updated NocoDB plugin, invisibly.

See also

Other functions to manage NocoDB plugins: is_plugin_active(), plugin(), plugin_category(), plugin_id(), plugins(), test_plugin()

Examples

if (FALSE) { # \dontrun{
nocodb::update_plugin(id_plugin = nocodb::plugin_id(title = "Backblaze B2"),
                      config = list(region = "REPLACE-ME",
                                    bucket = "REPLACE-ME",
                                    access_key = "REPLACE-ME",
                                    access_secret = "REPLACE-ME"),
                      activate = TRUE)
                      
nocodb::update_plugin(id_plugin = nocodb::plugin_id(title = "S3"),
                      config = list(endpoint = "https://s3.REPLACE-ME.backblazeb2.com",
                                    region = "REPLACE-ME",
                                    bucket = "REPLACE-ME",
                                    access_key = "REPLACE-ME",
                                    access_secret = "REPLACE-ME",
                                    acl = "public-read"),
                      activate = TRUE)} # }