Add a Task Attachment
post
/tasks/{id}/attachments
Adds an attachment to a task.
Request
Supported Media Types
- multipart/mixed
File body with Content-Type header
Root Schema : schema
Response
Supported Media Types
- application/json
- application/xml
200 Response
Success
Root Schema : schema
Example Response (application/json)
{
"levels":0,
"links":[
{
"href":"http://example.com/bpm/api/3.0/tasks/200003",
"length":0,
"rel":"back"
},
{
"href":"http://example.com/bpm/api/3.0/tasks/200003/attachments",
"length":0,
"rel":"self"
}
],
"attachment":[
{
"updatedDate":"2015-03-10 12:29:20",
"updatedBy":"John Steinbeck",
"attachmentScope":"BPM",
"uri":{
"href":"http://example.com/bpm/api/3.0/tasks/200003/attachments/Payment+Receipt.pdf/stream",
"length":0,
"rel":"stream"
},
"userId":"jstein",
"levels":0,
"title":"Payment Receipt.pdf",
"attachmentSize":69,
"mimeType":"application/pdf"
}
]
}