create_blank_json_body: create_blank_json_body

Description Usage Arguments Value

View source: R/create_blank_json_body.R

Description

Create the JSON body for updating the given fields or creating a new dataset

Usage

1
2
3
4
5
6
create_blank_json_body(
  values = c("title", "body"),
  publication_status = "published",
  type = "dataset",
  root_url = dkanr::get_url()
)

Arguments

values

vector: vector of fields to make blank

publication_status

string: status to post the mode, takes values of c("published", "unpublished", "draft")

type

string: indicates whether the JSON body is for a "dataset" or a "resource"

root_url

string: API root URL

Value

json string


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