directus_post | R Documentation |
post/create data in directus
directus_post(
endpoint,
body,
token = Sys.getenv("DIRECTUS_TOKEN"),
api_base = "https://cms.correlaid.org/"
)
endpoint |
character. REST endpoint to post to. Refer to the API reference. |
body |
list. body to post to Directus. Can be a list of lists (for multiple elements at once) or a single list (for only one 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.