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. |
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"
}