v1
latestOpenAPI 3.1.02026-07-24172151607.6 KBAttachments
Create an Attachment
Upload an attachment to a task or to a file type Custom Field.
Once a file has been uploaded to a custom_fields entity, use Set Custom Field Value to associate the uploaded file with a task.
To retrieve the ID of a Custom Field, you can use Get List Custom Fields or Get task.
post/api/v3/workspaces/{workspace_id}/{entity_type}/{entity_id}/attachments
Path parameters
workspace_idinteger required
The ID of the Workspace.
entity_type'attachments' | 'custom_fields' required
The entity type. Options include attachments for tasks or custom_fields for a Files Custom Field.
entity_idstring required
The ID of the task or Custom Field.
Response
The created attachment.
Example response
{
"date_updated": 1737065673712,
"date_created": 1737065673712,
"extension": "png",
"id": "51971815-ae25-49d5-b90c-4988f400a307.png",
"mime_type": "image/png",
"parent_entity_type": "tasks",
"size": 14697,
"signed": true,
"title": "An example image"
}