{ "opencollection": "1.0.0", "info": { "name": "Helpcenter TicketAttachment API", "version": "1.0.0" }, "items": [ { "info": { "name": "TicketAttachment", "type": "folder" }, "items": [ { "info": { "name": "List ticket attachments", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/api/v1/tickets/:ticketId/attachments", "params": [ { "name": "include", "value": "", "type": "query", "description": "SSecondary information related to the comments The allowed values are mentions and plainText. In the API request, you can pass mention, plainText, or both by using commas to separate them." }, { "name": "limit", "value": "", "type": "query", "description": "Number of comments to fetch" }, { "name": "isPublic", "value": "", "type": "query" }, { "name": "from", "value": "", "type": "query", "description": "Index number starting from which the comments must be fetched" }, { "name": "sortBy", "value": "", "type": "query", "description": "Sort by the commentedTime attribute. The default sorting order is ascending. A - prefix denotes descending order of sorting" }, { "name": "ticketId", "value": "", "type": "path" } ] }, "docs": "This API lists the files attached to a ticket." }, { "info": { "name": "Create Ticket attachment", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/api/v1/tickets/:ticketId/attachments", "params": [ { "name": "isPublic", "value": "", "type": "query" }, { "name": "ticketId", "value": "", "type": "path" } ], "body": { "type": "multipart-form", "data": [ { "name": "file", "type": "text", "value": "" } ] } }, "docs": "This API attaches a file to a ticket." }, { "info": { "name": "Update Ticket attachment", "type": "http" }, "http": { "method": "PATCH", "url": "{{baseUrl}}/api/v1/tickets/:ticketId/attachments/:attachmentId", "params": [ { "name": "attachmentId", "value": "", "type": "path" }, { "name": "ticketId", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" } }, "docs": "This API updates an existing attachment." }, { "info": { "name": "Delete Ticket attachment", "type": "http" }, "http": { "method": "DELETE", "url": "{{baseUrl}}/api/v1/tickets/:ticketId/attachments/:attachmentId", "params": [ { "name": "attachmentId", "value": "", "type": "path" }, { "name": "ticketId", "value": "", "type": "path" } ] }, "docs": "This API deletes an attachment from a ticket." } ] } ], "bundled": true }