Send POST Request to Postgres API

postgres_post(path, body = NULL, encode = "json", ...)

Arguments

path

relative path, e.g. users/3/bathingspots/18/genericInputs to create a generic input for bathing spot of user 3 with ID 18

body

list with the fields to be set as key = value pairs, e.g. list(name = "lirum larum")

encode

passed to POST. Default: "json". Set to "multipart" for uploading files!

...

further arguments passed to fhpredict:::postgres_request

Value

In case of success this function returns what httr::content(response, as = "parsed") returns. In case of failure an empty list with attribute response (containing the response object returned by POST) is returned.