api-attachment | R Documentation |
Result from a call to the API endpoint POST https://api.clickup.com/api/v2/task/task_id/attachment
cu_post_task_attachment(
task_id,
attachment,
filename = NULL,
...,
cu_token = NULL
)
task_id |
Task ID. |
attachment |
Path to a file. |
filename |
File name as it will show up in CluckUp,
deduced from |
... |
Can be used to pass mime |
cu_token |
ClickUp personal access token or an access token from the OAuth flow.
The |
A cu object.
cu for the cu object class.
## Not run:
## produce a png image
f <- tempfile(fileext=".png")
png(f)
plot(1:10, col=1:10)
dev.off()
## attache the image to a task
cu_post_task_attachment("8ach57", f)
unlink(f) # clean up the image
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.