v1
latestOpenAPI 3.1.02026-07-24172151607.6 KBAttachments
Create Task Attachment
Upload a file to a task as an attachment. Files stored in the cloud cannot be used in this API request.
Note: This request uses multipart/form-data as the content type.
Tip: Try our new V3 Attachments API, which supports both tasks and File type Custom Fields!
post/v2/task/{task_id}/attachment
Path parameters
task_idstring required
Example:9hv
Query parameters
custom_task_idsboolean
Example:true
If you want to reference a task by its custom task id, this value must be true.
team_idnumber
Example:123
When the custom_task_ids parameter is set to true, the Workspace ID must be provided using the team_id parameter.
For example: custom_task_ids=true&team_id=123.
Response
Example response
{
"id": "ac434d4e-8b1c-4571-951b-866b6d9f2ee6.png",
"version": "0",
"date": 1569988578766,
"title": "image.png",
"extension": "png",
"thumbnail_small": "https://attachments-public.clickup.com/ac434d4e-8b1c-4571-951b-866b6d9f2ee6/logo_small.png",
"thumbnail_large": "https://attachments-public.clickup.com/ac434d4e-8b1c-4571-951b-866b6d9f2ee6/logo_small.png",
"url": "https://attachments-public.clickup.com/ac434d4e-8b1c-4571-951b-866b6d9f2ee6/logo_small.png"
}