From 588f49cc34aacb147e3a41eed211d152d98b1623 Mon Sep 17 00:00:00 2001 From: Pranav Raj S Date: Tue, 31 Aug 2021 11:27:40 +0530 Subject: [PATCH] fix: Update param name for attachments (#2921) --- swagger/paths/conversation/messages/create_attachment.yml | 4 ++-- swagger/swagger.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/swagger/paths/conversation/messages/create_attachment.yml b/swagger/paths/conversation/messages/create_attachment.yml index e6bbd6854..155876e13 100644 --- a/swagger/paths/conversation/messages/create_attachment.yml +++ b/swagger/paths/conversation/messages/create_attachment.yml @@ -3,7 +3,7 @@ post: - Messages operationId: conversationNewMessageAttachment summary: Create New Message Attachment - description: Create an attachment Message + description: Create an attachment message. Refer to this discussion if you have any further doubts. https://github.com/chatwoot/chatwoot/discussions/1809#discussioncomment-1211845 consumes: - multipart/form-data security: @@ -27,7 +27,7 @@ post: type: boolean description: Flag to identify if it is a private note - in: formData - name: attachments + name: attachments[] type: array description: The files to be uploaded. items: diff --git a/swagger/swagger.json b/swagger/swagger.json index 027a7e0f9..102e7f8d5 100644 --- a/swagger/swagger.json +++ b/swagger/swagger.json @@ -2109,7 +2109,7 @@ ], "operationId": "conversationNewMessageAttachment", "summary": "Create New Message Attachment", - "description": "Create an attachment Message", + "description": "Create an attachment message. Refer to this discussion if you have any further doubts. https://github.com/chatwoot/chatwoot/discussions/1809#discussioncomment-1211845", "consumes": [ "multipart/form-data" ], @@ -2156,7 +2156,7 @@ }, { "in": "formData", - "name": "attachments", + "name": "attachments[]", "type": "array", "description": "The files to be uploaded.", "items": {