create_node {dkanr} | R Documentation |
create_node
Description
Create a DKAN node
Usage
create_node(url = get_url(), body, credentials = list(cookie =
dkanr::get_cookie(), token = dkanr::get_token()), as = "json", ...)
Arguments
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
## Not run:
create_node(url = "http://demo.getdkan.com", body = {"title": "TEST DATASET"})
## End(Not run)
[Package dkanr version 0.1.3 Index]