2021-05-11 17:08:46 +00:00
post :
tags :
- Messages
operationId : conversationNewMessageAttachment
summary : Create New Message Attachment
2021-08-31 05:57:40 +00:00
description : Create an attachment message. Refer to this discussion if you have any further doubts. https://github.com/chatwoot/chatwoot/discussions/1809#discussioncomment-1211845
2021-05-11 17:08:46 +00:00
consumes :
- multipart/form-data
security :
- userApiKey : [ ]
- agentBotApiKey : [ ]
parameters :
- $ref : '#/parameters/account_id'
- $ref : '#/parameters/conversation_id'
required : true
- in : formData
name : content
type : string
description : The content of the message
required : true
- in : formData
name : message_type
type : string
enum : [ 'outgoing' , 'incoming' ]
- in : formData
name : private
type : boolean
description : Flag to identify if it is a private note
- in : formData
2021-08-31 05:57:40 +00:00
name : attachments[]
2021-05-11 17:08:46 +00:00
type : array
description : The files to be uploaded.
items :
type : file
responses :
200 :
description : Success
schema :
allOf :
- $ref : '#/definitions/generic_id'
- $ref : '#/definitions/message'
404 :
description : Conversation not found
403 :
description : Access denied