attach_resource_to_dataset: attach_resource_to_dataset link resources to dataset

Description Usage Arguments Value

View source: R/attach_resource_to_dataset.R

Description

attach_resource_to_dataset link resources to dataset

Usage

1
2
3
4
5
6
attach_resource_to_dataset(
  credentials = list(cookie = dkanr::get_cookie(), token = dkanr::get_token()),
  body,
  root_url = dkanr::get_url(),
  dataset_nid
)

Arguments

credentials

list: object returned by the get_credentials() function

body

json: json object generated by jsonlite::toJSON

root_url

character: API root URL

dataset_nid

character: Node ID of the dataset to be updated

Value

list


tonyfujs/mdlibtoddh documentation built on March 14, 2021, 10 p.m.