Submits a POST command against a REST API

call_that_api_post(
  api_connection,
  endpoint = "",
  body = NULL,
  headers = list(),
  ...
)

Arguments

api_connection

A call_that_connection object

endpoint

The name of the API's endpoint. Defaults to an empty character vector.

body

The body or query sent to the REST API.

headers

A list object containing a named list of headers to pass to the API.

...

Other arguments to pass to the REST API call.

Value

An httr request object