Get Task Attachments

Gets the attachments for a task.

Method

GET /task/{id}/attachment

Parameters

Path Parameters

Name Description
id The id of the task to retrieve the attachments for.

Result

A JSON object containing a list of task attachments.

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 No task exists for the given task id. See the Introduction for the error response format.

Example

Request

GET /task/aTaskId/attachment

Response

[
  {
    "id": "attachmentId",
    "name": "attachmentName",
    "taskId": "aTaskId",
    "description": "attachmentDescription",
    "type": "attachmentType",
	"url": "http://my-attachment-content-url.de"
  },
  {
    "id": "anotherAttachmentId",
    "name": "anotherAttachmentName",
    "taskId": "aTaskId",
    "description": "anotherAttachmentDescription",
    "type": "anotherAttachmentType",
	"url": "http://my-another-attachment-content-url.de"
  },
  {
    "id": "yetAnotherAttachmentId",
    "name": "yetAnotherAttachmentName",
    "taskId": "aTaskId",
    "description": "yetAnotherAttachmentDescription",
    "type": "yetAnotherAttachmentType",
	"url": "http://yet-another-attachment-content-url.de"
  }
]

On this Page: