Open psolymos opened 4 years ago
ClickUp support promptly addressed the attachment issue:
After discussing with our developers they've informed me that our API documentation is actually incorrect here.
They've provided me with this curl:
"curl --location --request POST 'https://api.clickup.com/api/v2/task/8gd5ki/attachment' \ --header 'Authorization: pk_xxx' \ --header 'Content-Type: multipart/form-data' \ --form 'filename=test.png' \ --form 'attachment=@/C:/Users/hhh/Downloads/Screen Shot 2020-06-17 at 9.49.44 AM.png'"
Where this line
--form 'attachment=@/C:/Users/hhh/Downloads/Screen Shot 2020-06-17 at 9.49.44 AM.png'
should contain the path to the file.
ClickUp API v2.0 https://clickup.com/api