R/tsc_occ_obs_post.R
tsc_occ_obs_post.Rd
Post a list of records to TSC API endpoint "occ-observation/bulk_create"
tsc_occ_obs_post(
data,
obstype = "PhysicalSample",
chunksize = 100,
api_url = get_tsc_api_url(),
api_token = get_tsc_api_token(),
verbose = get_tsc_verbose()
)
A tbl_df of occ-observation records
The model type of the occ-observation model, default: "PhysicalSample".
The number of records to post at a time, default: 1000.
(character) The TSC API URL,
default get_tsc_api_url
, see tsc_setup
(character) The TSC API token,
default get_tsc_api_token
, see tsc_setup
Whether to show verbose messages.
Default: get_tsc_verbose
.
Other api:
handle_http_status()
,
print.tsc_api_response()
,
tsc_GET()
,
tsc_POST()
,
tsc_chunk_post()
,
tsc_parse()
if (FALSE) {
testthat::skip_if_not(tsc_works())
data("phys_sample")
x <- tsc_occ_obs_post(phys_sample,
obstype = "PhysicalSample",
chunksize = 10,
api_url = get_tsc_test_api_url(),
api_token = get_tsc_test_api_token(),
verbose = TRUE
)
}