Skip to main content
POST
/
task
/
{id}
/
attachment
/
create
Create
curl --request POST \
  --url http://{host}:{port}/{contextPath}/task/{id}/attachment/create \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: multipart/form-data'
{
  "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",
  "links": [
    {
      "method": "GET",
      "href": "http://localhost:38080/rest-test/task/aTaskId/attachment/aTaskAttachmentId",
      "rel": "self"
    }
  ]
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

id
string
required

The id of the task to add the attachment to.

Body

multipart/form-data
attachment-name
string | null

The name of the attachment.

attachment-description
string | null

The description of the attachment.

attachment-type
string | null

The type of the attachment.

url
string | null

The url to the remote content of the attachment.

content
file | null

The content of the attachment.

Response

Request successful.

id
string | null

The id of the task attachment.

name
string | null

The name of the task attachment.

description
string | null

The description of the task attachment.

taskId
string | null

The id of the task to which the attachment belongs.

type
string | null

Indication of the type of content that this attachment refers to. Can be MIME type or any other indication.

url
string | null

The url to the remote content of the task attachment.

createTime
string<date-time> | null

The time the variable was inserted. Default format yyyy-MM-dd'T'HH:mm:ss.SSSZ.

removalTime
string<date-time> | null

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 | null

The process instance id of the root process instance that initiated the process containing the task.

The links associated to this resource, with method, href and rel.