clickup_create_task_attachment
Upload a local file from your filesystem to a ClickUp task as an attachment. Supports custom task IDs when a team ID is provided.
Instructions
Upload a local file to a task as an attachment (v2).
Reads the file at file_path from the local filesystem and posts it to the
task as multipart/form-data (the ClickUp file field is attachment).
Files already stored in the cloud cannot be used here.
When to Use:
To attach a document, image, or log file that exists on the local disk to a task.
When NOT to Use:
To upload to a File-type Custom Field, or if you prefer the newer API — use
clickup_create_entity_attachment(v3).To read existing attachments — use
clickup_get_entity_attachments.
Returns: A confirmation with the new attachment's id and URL. The file bytes are never echoed back.
Examples:
params = {"task_id": "abc", "file_path": "/tmp/report.pdf"}custom task ID:
params = {"task_id": "PROJ-1", "file_path": "./log.txt", "custom_task_ids": true, "team_id": "123"}
Error Handling: A ValidationError before the request means the path is missing/empty/too large; a 404 means the task ID is wrong.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |