chore: Update API documentation for whatsapp templates (#8211)
- Update API documentation for whatsapp templates
This commit is contained in:
parent
8c67ea56e7
commit
b6831d464e
@ -19,3 +19,24 @@ properties:
|
|||||||
content_attributes:
|
content_attributes:
|
||||||
type: object
|
type: object
|
||||||
description: attributes based on your content type
|
description: attributes based on your content type
|
||||||
|
template_params:
|
||||||
|
type: object
|
||||||
|
description: The template params for the message in case of whatsapp Channel
|
||||||
|
properties:
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
description: Name of the template
|
||||||
|
example: 'sample_issue_resolution'
|
||||||
|
category:
|
||||||
|
type: string
|
||||||
|
description: Category of the template
|
||||||
|
example: UTILITY
|
||||||
|
language:
|
||||||
|
type: string
|
||||||
|
description: Language of the template
|
||||||
|
example: en_US
|
||||||
|
processed_params:
|
||||||
|
type: object
|
||||||
|
description: The processed param values for template variables in template
|
||||||
|
example:
|
||||||
|
1: "Chatwoot"
|
||||||
|
|||||||
@ -66,6 +66,9 @@ post:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: object
|
type: object
|
||||||
|
required:
|
||||||
|
- source_id
|
||||||
|
- inbox_id
|
||||||
properties:
|
properties:
|
||||||
source_id:
|
source_id:
|
||||||
type: string
|
type: string
|
||||||
@ -93,7 +96,35 @@ post:
|
|||||||
team_id:
|
team_id:
|
||||||
type: string
|
type: string
|
||||||
description: Team Id for assigning a conversation to a team
|
description: Team Id for assigning a conversation to a team
|
||||||
|
message:
|
||||||
|
type: object
|
||||||
|
description: The initial message to be sent to the conversation
|
||||||
|
required: ['content']
|
||||||
|
properties:
|
||||||
|
content:
|
||||||
|
type: string
|
||||||
|
description: The content of the message
|
||||||
|
template_params:
|
||||||
|
type: object
|
||||||
|
description: The template params for the message in case of whatsapp Channel
|
||||||
|
properties:
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
description: Name of the template
|
||||||
|
example: 'sample_issue_resolution'
|
||||||
|
category:
|
||||||
|
type: string
|
||||||
|
description: Category of the template
|
||||||
|
example: UTILITY
|
||||||
|
language:
|
||||||
|
type: string
|
||||||
|
description: Language of the template
|
||||||
|
example: en_US
|
||||||
|
processed_params:
|
||||||
|
type: object
|
||||||
|
description: The processed param values for template variables in template
|
||||||
|
example:
|
||||||
|
1: "Chatwoot"
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
description: Success
|
description: Success
|
||||||
|
|||||||
@ -2840,6 +2840,10 @@
|
|||||||
"required": true,
|
"required": true,
|
||||||
"schema": {
|
"schema": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"source_id",
|
||||||
|
"inbox_id"
|
||||||
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"source_id": {
|
"source_id": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@ -2881,6 +2885,47 @@
|
|||||||
"team_id": {
|
"team_id": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Team Id for assigning a conversation to a team"
|
"description": "Team Id for assigning a conversation to a team"
|
||||||
|
},
|
||||||
|
"message": {
|
||||||
|
"type": "object",
|
||||||
|
"description": "The initial message to be sent to the conversation",
|
||||||
|
"required": [
|
||||||
|
"content"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"content": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The content of the message"
|
||||||
|
},
|
||||||
|
"template_params": {
|
||||||
|
"type": "object",
|
||||||
|
"description": "The template params for the message in case of whatsapp Channel",
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Name of the template",
|
||||||
|
"example": "sample_issue_resolution"
|
||||||
|
},
|
||||||
|
"category": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Category of the template",
|
||||||
|
"example": "UTILITY"
|
||||||
|
},
|
||||||
|
"language": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Language of the template",
|
||||||
|
"example": "en_US"
|
||||||
|
},
|
||||||
|
"processed_params": {
|
||||||
|
"type": "object",
|
||||||
|
"description": "The processed param values for template variables in template",
|
||||||
|
"example": {
|
||||||
|
"1": "Chatwoot"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -6246,6 +6291,34 @@
|
|||||||
"content_attributes": {
|
"content_attributes": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"description": "attributes based on your content type"
|
"description": "attributes based on your content type"
|
||||||
|
},
|
||||||
|
"template_params": {
|
||||||
|
"type": "object",
|
||||||
|
"description": "The template params for the message in case of whatsapp Channel",
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Name of the template",
|
||||||
|
"example": "sample_issue_resolution"
|
||||||
|
},
|
||||||
|
"category": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Category of the template",
|
||||||
|
"example": "UTILITY"
|
||||||
|
},
|
||||||
|
"language": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Language of the template",
|
||||||
|
"example": "en_US"
|
||||||
|
},
|
||||||
|
"processed_params": {
|
||||||
|
"type": "object",
|
||||||
|
"description": "The processed param values for template variables in template",
|
||||||
|
"example": {
|
||||||
|
"1": "Chatwoot"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user