Create a new attachment on a task.

POST {{baseUrl}}/tasks/:taskId/attachments

Create a new attachment on a task, either by linking to an external resource url or by providing a file input.
An external resource url can be linked as a task attachment by providing the required details in the json request body as below.

Sample request body :
{
name : SampleAttachment
description : SampleDescription
type : SampleType
externalUrl : https://..
includeUserIds : false
}

A file can also be directly uploaded as a task attachment by providing the reference file as a multipart/form-data Content-Type input. By default the file is uploaded and linked to OT2 content store (Content metadata service & Content storage service).

Request Body

[{"name"=>"aclId", "value"=>"tempor labore Excepteur do Ut", "datatype"=>"string"}, {"name"=>"description", "value"=>"ea officia id", "datatype"=>"string"}, {"name"=>"fileId", "value"=>"mollit labori", "datatype"=>"string"}, {"name"=>"fileName", "value"=>"officia irure aliqua", "datatype"=>"string"}, {"name"=>"name", "value"=>"voluptate amet qui", "datatype"=>"string"}, {"name"=>"parentFolderId", "value"=>"cillum ex ", "datatype"=>"string"}, {"name"=>"type", "value"=>"aute consequat minim", "datatype"=>"string"}]

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: Created

""