patch: Call an API using the PATCH method

View source: R/util.R

patchR Documentation

Call an API using the PATCH method

Description

Call an API using the PATCH method

Usage

patch(path, body, credentials = NULL, verify = T, timeout = 30)

Arguments

path

The path to the API endpoint, excluding the hub URL (and not starting with a forward slash).

body

The body of the request as json data (use 'jsonlite::toJSON(body, auto_unbox=T)').

credentials

A credentials object to authenticate with.

verify

Optional. Whether to verify the SSL certificate of the API. Defaults to TRUE.

timeout

Optional. The timeout in seconds to wait for a response. Defaults to 30.


clessn/hubr documentation built on Feb. 15, 2023, 9:32 p.m.