update_node: update_node

Description Usage Arguments Value Examples

View source: R/update_node.R

Description

Update an existing DKAN node

Usage

1
2
update_node(nid, url = get_url(), body, credentials = list(cookie =
  dkanr::get_cookie(), token = dkanr::get_token()), as = "json", ...)

Arguments

nid

character: DKAN node ID

url

character: The DKAN site URL

body

json: A JSON object to be passed to the body of the request

credentials

Optional list parameter. Default values are Cookie and Token generated by dkan_setup()

as

character: Output format. Options are: 'json' or 'list'

...

Other optional parameters passed to the underlying GET request

Value

dkan_node object

Examples

1
2
3
4
## Not run: 
update_node(nid = 1, url = "http://demo.getdkan.com")

## End(Not run)

dkanr documentation built on May 1, 2019, 7:31 p.m.