powered by
Create a DKAN node
create_node(url = get_url(), body, credentials = list(cookie = dkanr::get_cookie(), token = dkanr::get_token()), as = "json", ...)
character: The DKAN site URL
json: A JSON object to be passed to the body of the request
Optional list parameter. Default values are Cookie and Token generated by dkan_setup()
character: Output format. Options are: 'json' or 'list'
Other optional parameters passed to the underlying GET request
dkan_node object
# NOT RUN { create_node(url = "http://demo.getdkan.com", body = {"title": "TEST DATASET"}) # }
Run the code above in your browser using DataLab