Skip to main content

Task Management Attachments

Overview

This resource represents Task Attachments - files attached to Tasks, Task Comments, or Templates. Attachments can be images or documents uploaded via URL or Base64-encoded data.

Parameters

NameTypeRead/WriteDescription
accountIntegerReadAccount's ID related to Attachment
targetObjectReadPolymorphic reference to target (Task, TaskComment, or Template)
created_byObjectReadPolymorphic reference to creator (User or Application)
idUUIDReadAttachment's ID
fileObjectReadFile object containing URLs for different sizes
created_atTimeReadAttachment's create time
updated_atTimeReadAttachment's update time
canceled_atTimeReadAttachment's cancellation time (null if not canceled)

file Object

The file object in responses contains URLs for accessing the attachment:

NameTypeDescription
thumbnailStringURL to thumbnail version (72x48 pixels)
smallStringURL to small version (161x107 pixels)
originalStringURL to original file
Image Processing

The thumbnail and small variants are only available for image files that support transformation (variable images). For non-image files or non-transformable images, these fields will be null.

List Attachments

GET /task_management/attachments

Get a single Attachment

Returns a single attachment identified by ID.

GET /task_management/attachments/:attachment_id

Create a new Attachment

Creates an Attachment.

POST /task_management/attachments
File Upload Methods

You can upload files using one of two methods:

  • remote_file: Provide Base64-encoded file data
  • remote_file_url: Provide a URL from which the file will be downloaded

Only one method should be used per request.

Delete an Attachment

Cancels an Attachment (soft delete).

DELETE /task_management/attachments/:attachment_id