GET Task Attachments

This REST request returns all the attachments in a task instance. The underlying built-in service is pub.task.taskclient:getTaskAttachments.

To return a specific attachment, the HTTP request is formed as follows:

GET /rest/pub/opentask/taskID/attachments/attachmentID

To return all attachments, the HTTP request is formed as follows:

GET /rest/pub/opentask/taskID/attachments

Input Parameters

attachmentID String The unique identifier of the attachment to be deleted.
includeAttachmentData Boolean Optional. Specifies whether or not to include Base64 encoded data in the attachments. Set to:
  • true to include Base64 data.
  • false to omit Base64 data (default).
taskID String The unique identifier that the Task Engine assigns to the task instance.

Output Parameters

taskAttachments TaskAttachment[] An array of TaskAttachment objects that represent the attachments in the task instance. See pub.task:TaskAttachment for the structure of this data.