update_resource: update_resource

Description Usage Arguments Value

View source: R/update_resource.R

Description

Update existing resource in DDH

Usage

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

Arguments

credentials

list: authentication token and cookie

nid

character: Node ID of the resource to be updated

body

json: json object generated by jsonlite::toJSON

root_url

character: API root URL

Value

list


tonyfujs/ddhconnect documentation built on June 3, 2020, 10:33 a.m.