Change the Access Level of a Time Series

db_ts_change_access(
  con,
  ts_keys,
  access_level,
  valid_from = NULL,
  schema = "timeseries"
)

db_dataset_change_access(
  con,
  dataset,
  access_level,
  valid_from = NULL,
  schema = "timeseries"
)

Arguments

con

RPostgres connection object.

ts_keys

character vector of time series identifiers.

access_level

character describing the access level of the time series or dataset.

valid_from

character representation of a date in the form of 'YYYY-MM-DD'. valid_from starts a new version

schema

character name of the database schema. Defaults to 'timeseries'

dataset

character name of the dataset. Datasets are group of time series.

Value

returns a list containing the parsed JSON status feedback from the DB. returns a list containing the parsed JSON status feedback from the DB.