directus_patch | R Documentation |
patch/edit data in directus
directus_patch(
endpoint,
id,
body,
token = Sys.getenv("DIRECTUS_TOKEN"),
api_base = "https://cms.correlaid.org/"
)
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. |
httr return object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.