2020-02-23 19:21:31 +00:00
|
|
|
type: object
|
2021-11-17 13:25:15 +00:00
|
|
|
required:
|
|
|
|
- content
|
2020-02-23 19:21:31 +00:00
|
|
|
properties:
|
2020-04-10 11:12:37 +00:00
|
|
|
content:
|
2020-02-23 19:21:31 +00:00
|
|
|
type: string
|
2020-03-11 10:49:13 +00:00
|
|
|
description: The content of the message
|
2020-08-17 07:37:12 +00:00
|
|
|
message_type:
|
|
|
|
type: string
|
|
|
|
enum: ['outgoing', 'incoming']
|
2020-02-23 19:21:31 +00:00
|
|
|
private:
|
|
|
|
type: boolean
|
2020-03-11 10:49:13 +00:00
|
|
|
description: Flag to identify if it is a private note
|
2020-04-10 11:12:37 +00:00
|
|
|
content_type:
|
|
|
|
type: string
|
2020-08-25 17:34:02 +00:00
|
|
|
enum: ['input_email', 'cards', 'input_select', 'form' , 'article']
|
|
|
|
example: 'cards'
|
|
|
|
description: 'if you want to create custom message types'
|
2020-04-10 11:12:37 +00:00
|
|
|
content_attributes:
|
|
|
|
type: object
|
2020-08-25 17:34:02 +00:00
|
|
|
description: attributes based on your content type
|