{ "opencollection": "1.0.0", "info": { "name": "Flowable REST Access Tokens Task Attachments API", "version": "v1" }, "items": [ { "info": { "name": "Task Attachments", "type": "folder" }, "items": [ { "info": { "name": "List attachments on a task", "type": "http" }, "http": { "method": "GET", "url": "/flowable-rest/service/runtime/tasks/:taskId/attachments", "params": [ { "name": "taskId", "value": "", "type": "path" } ], "auth": { "type": "basic", "username": "{{username}}", "password": "{{password}}" } }, "docs": "List attachments on a task" }, { "info": { "name": "Create a new attachment on a task, containing a link to an external resource or an attached file", "type": "http" }, "http": { "method": "POST", "url": "/flowable-rest/service/runtime/tasks/:taskId/attachments", "params": [ { "name": "taskId", "value": "", "type": "path" } ], "body": { "type": "multipart-form", "data": [ { "name": "file", "type": "text", "value": "" }, { "name": "name", "type": "text", "value": "" }, { "name": "description", "type": "text", "value": "" }, { "name": "type", "type": "text", "value": "" } ] }, "auth": { "type": "basic", "username": "{{username}}", "password": "{{password}}" } }, "docs": "This endpoint can be used in 2 ways: By passing a JSON Body (AttachmentRequest) to link an external resource or by passing a multipart/form-data Object to attach a file.\nNB: Swagger V2 specification does not support this use case that is why this endpoint might be buggy/incomplete if used with other tools." }, { "info": { "name": "Get an attachment on a task", "type": "http" }, "http": { "method": "GET", "url": "/flowable-rest/service/runtime/tasks/:taskId/attachments/:attachmentId", "params": [ { "name": "taskId", "value": "", "type": "path" }, { "name": "attachmentId", "value": "", "type": "path" } ], "auth": { "type": "basic", "username": "{{username}}", "password": "{{password}}" } }, "docs": "Get an attachment on a task" }, { "info": { "name": "Delete an attachment on a task", "type": "http" }, "http": { "method": "DELETE", "url": "/flowable-rest/service/runtime/tasks/:taskId/attachments/:attachmentId", "params": [ { "name": "taskId", "value": "", "type": "path" }, { "name": "attachmentId", "value": "", "type": "path" } ], "auth": { "type": "basic", "username": "{{username}}", "password": "{{password}}" } }, "docs": "Delete an attachment on a task" }, { "info": { "name": "Get the content for an attachment", "type": "http" }, "http": { "method": "GET", "url": "/flowable-rest/service/runtime/tasks/:taskId/attachments/:attachmentId/content", "params": [ { "name": "taskId", "value": "", "type": "path" }, { "name": "attachmentId", "value": "", "type": "path" } ], "auth": { "type": "basic", "username": "{{username}}", "password": "{{password}}" } }, "docs": "The response body contains the binary content. By default, the content-type of the response is set to application/octet-stream unless the attachment type contains a valid Content-type." } ] } ], "bundled": true }