directus_patch: patch/edit data in directus

View source: R/directus.R

directus_patchR Documentation

patch/edit data in directus

Description

patch/edit data in directus

Usage

directus_patch(
  endpoint,
  id,
  body,
  token = Sys.getenv("DIRECTUS_TOKEN"),
  api_base = "https://cms.correlaid.org/"
)

Arguments

endpoint

character. REST endpoint to patch. Refer to the API reference.

id

integer. id of the element to be patched.

body

list. updates to patch. do not include the id of the element.

token

character. API token for Directus, defaults to environment variable DIRECTUS_TOKEN.

api_base

character. API base URL. defaults to https://cms.correlaid.org.

Value

httr return object


CorrelAid/correltools documentation built on April 26, 2023, 8:19 a.m.