Get Task Attachment
Retrieves a task attachment by task id and attachment id.
Method
GET /task/{id}/attachment/{attachmentId}
Parameters
Path Parameters
| Name | Description | 
|---|---|
| id | The id of the task. | 
| attachmentId | The id of the attachment to be retrieved. | 
Result
A JSON object corresponding to the Attachment interface in the engine.
Its properties are as follows:
| Name | Value | 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. | 
Example
Request
GET /task/aTaskId/attachment/aTaskAttachmentId
Response
{
    "id": "attachmentId",
    "name": "attachmentName",
    "taskId": "aTaskId",
    "description": "attachmentDescription",
    "type": "attachmentType",
    "url": "http://my-attachment-content-url.de",
    "createTime":"2017-02-10T14:33:19.000+0200",
    "removalTime":"2018-02-10T14:33:19.000+0200",
    "rootProcessInstanceId": "aRootProcessInstanceId"
}