* Added the documentation for the conversation APIs - 8 endpoints * Added descriptions for the existing endpoints * Added new resource models and updated some parts of the contact API
27 lines
655 B
YAML
27 lines
655 B
YAML
post:
|
|
tags: [Conversation]
|
|
summary: Create New Message
|
|
description: All the agent replies are created as new messages through this endpoint
|
|
parameters:
|
|
- name: id
|
|
in: path
|
|
type: number
|
|
description: id of the conversation
|
|
required: true
|
|
- name: data
|
|
in: body
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/conversation_message_create'
|
|
responses:
|
|
204:
|
|
description: Success
|
|
schema:
|
|
allOf:
|
|
- $ref: '#/definitions/generic_id'
|
|
- $ref: '#/definitions/message'
|
|
404:
|
|
description: Conversation not found
|
|
403:
|
|
description: Access denied
|