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"=>"ut tempor aliquip", "datatype"=>"string"}, {"name"=>"description", "value"=>"amet Lorem ad dolor", "datatype"=>"string"}, {"name"=>"fileId", "value"=>"laborum occaecat Lor", "datatype"=>"string"}, {"name"=>"fileName", "value"=>"non qui", "datatype"=>"string"}, {"name"=>"name", "value"=>"proident nisi ipsum", "datatype"=>"string"}, {"name"=>"parentFolderId", "value"=>"est labore pariatur", "datatype"=>"string"}, {"name"=>"type", "value"=>"exercitation consectetur id magna", "datatype"=>"string"}]
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
""