Get Task Attachment

Retrieves a task attachment by task id and attachment id.


GET /task/{id}/attachment/{attachmentId}


Path Parameters

Name Description
id The id of the task.
attachmentId The id of the attachment to be retrieved.


A JSON object corresponding to the Attachment interface in the engine. Its properties are as follows:

Name Type Description
id String The id of the task attachment.
name String The name of the task attachment.
taskId String The id of the task to which the attachment belongs.
description String The description of the task attachment.
type String Indication of the type of content that this attachment refers to. Can be MIME type or any other indication.
url String The url to the remote content of the task attachment.
createTime String The time the variable was inserted. Default format* yyyy-MM-dd'T'HH:mm:ss.SSSZ.
removalTime String The time after which the attachment should be removed by the History Cleanup job. Default format* yyyy-MM-dd'T'HH:mm:ss.SSSZ.
rootProcessInstanceId String The process instance id of the root process instance that initiated the process containing the task.

* For further information, please see the documentation.

Response Codes

Code Media type Description
200 application/json Request successful.
404 application/json The attachment for given task and attachment id does not exist or the history of the engine is disabled. See the Introduction for the error response format.



GET /task/aTaskId/attachment/aTaskAttachmentId


    "id": "attachmentId",
    "name": "attachmentName",
    "taskId": "aTaskId",
    "description": "attachmentDescription",
    "type": "attachmentType",
    "url": "",
    "rootProcessInstanceId": "aRootProcessInstanceId"

On this Page: