parent
22880df429
commit
dfe4b70d91
4 changed files with 30 additions and 15 deletions
|
@ -1,6 +1,11 @@
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
account_id:
|
|
||||||
type: number
|
|
||||||
inbox_id:
|
inbox_id:
|
||||||
type: number
|
type: number
|
||||||
|
required: true
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
email:
|
||||||
|
type: string
|
||||||
|
phone_number:
|
||||||
|
type: string
|
||||||
|
|
|
@ -1,13 +1,12 @@
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
conversation_id:
|
|
||||||
type: number
|
|
||||||
description: ID of the conversation
|
|
||||||
required: true
|
|
||||||
content:
|
content:
|
||||||
type: string
|
type: string
|
||||||
description: The content of the message
|
description: The content of the message
|
||||||
required: true
|
required: true
|
||||||
|
message_type:
|
||||||
|
type: string
|
||||||
|
enum: ['outgoing', 'incoming']
|
||||||
private:
|
private:
|
||||||
type: boolean
|
type: boolean
|
||||||
description: Flag to identify if it is a private note
|
description: Flag to identify if it is a private note
|
||||||
|
|
|
@ -23,6 +23,7 @@ post:
|
||||||
- Contact
|
- Contact
|
||||||
operationId: contactCreate
|
operationId: contactCreate
|
||||||
description: Create New Contact
|
description: Create New Contact
|
||||||
|
summary: Create Contact
|
||||||
parameters:
|
parameters:
|
||||||
- name: data
|
- name: data
|
||||||
in: body
|
in: body
|
||||||
|
|
|
@ -767,6 +767,7 @@
|
||||||
],
|
],
|
||||||
"operationId": "contactCreate",
|
"operationId": "contactCreate",
|
||||||
"description": "Create New Contact",
|
"description": "Create New Contact",
|
||||||
|
"summary": "Create Contact",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"name": "data",
|
"name": "data",
|
||||||
|
@ -1446,11 +1447,18 @@
|
||||||
"contact_create": {
|
"contact_create": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"account_id": {
|
|
||||||
"type": "number"
|
|
||||||
},
|
|
||||||
"inbox_id": {
|
"inbox_id": {
|
||||||
"type": "number"
|
"type": "number",
|
||||||
|
"required": true
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"email": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"phone_number": {
|
||||||
|
"type": "string"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -1471,16 +1479,18 @@
|
||||||
"conversation_message_create": {
|
"conversation_message_create": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"conversation_id": {
|
|
||||||
"type": "number",
|
|
||||||
"description": "ID of the conversation",
|
|
||||||
"required": true
|
|
||||||
},
|
|
||||||
"content": {
|
"content": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "The content of the message",
|
"description": "The content of the message",
|
||||||
"required": true
|
"required": true
|
||||||
},
|
},
|
||||||
|
"message_type": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"outgoing",
|
||||||
|
"incoming"
|
||||||
|
]
|
||||||
|
},
|
||||||
"private": {
|
"private": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"description": "Flag to identify if it is a private note"
|
"description": "Flag to identify if it is a private note"
|
||||||
|
|
Loading…
Reference in a new issue