Crear plantilla de conversación
Crear plantilla de conversación. Vea los parámetros definidos por OpenAPI, el cuerpo de solicitud y las respuestas a continuación.
POST
/ConversationTemplateCrear plantilla de conversación. Vea los parámetros definidos por OpenAPI, el cuerpo de solicitud y las respuestas a continuación.
Descripción de OpenAPI: Este endpoint crea una nueva plantilla de conversación con los datos proporcionados.
Autenticación
Se requiere autenticación. Envía tu clave de API de usuario en la cabecera X-API-Key.
Parámetros
Esta operación no tiene parámetros de ruta, consulta o encabezado.
Órgano solicitante
Tipo de contenido: application/json · Schema: ConversationTemplateDto
| Propiedad | Tipo | Obligatorio | Descripción | Constraints |
|---|---|---|---|---|
id | integer · int32 | No | — | — |
active | boolean | No | — | — |
contentSid | string | No | — | nullable |
name | string | No | — | nullable |
message | string | No | — | nullable |
createdAt | string · date-time | No | — | — |
conversationTemplateType | ConversationTemplateType | No | — | — |
contentVariables | object | No | — | nullable |
approvalStatus | ApprovalStatus | No | — | — |
botId | integer · int32 | No | — | — |
language | string | No | — | nullable |
queueIds | array<integer · int32> | No | — | nullable |
groupIds | array<integer · int32> | No | — | nullable |
Ejemplo de solicitud
curl --request POST \
--url 'https://api.zild.ai/ConversationTemplate' \
--header 'X-API-Key: YOUR_USER_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"id": 0,
"active": true,
"contentSid": "string",
"name": "string",
"message": "string",
"createdAt": "2026-09-22T18:00:00Z",
"conversationTemplateType": 0,
"contentVariables": {},
"approvalStatus": 0,
"botId": 0,
"language": "string",
"queueIds": [
0
],
"groupIds": [
0
]
}'
Respuestas
| Estado | Descripción | Cuerpo de respuesta |
|---|---|---|
200 | Plantilla creada correctamente | application/json · ConversationTemplateDto |
Respuesta de ejemplo (200):
{
"id": 0,
"active": true,
"contentSid": "string",
"name": "string",
"message": "string",
"createdAt": "2026-09-22T18:00:00Z",
"conversationTemplateType": 0,
"contentVariables": {},
"approvalStatus": 0,
"botId": 0,
"language": "string",
"queueIds": [
0
],
"groupIds": [
0
]
}
Modelos de datos
ApprovalStatus
0 = NotRequested; 1 = Received; 2 = Pending; 3 = Approved; 4 = Rejected
integer
ConversationTemplateDto
| Propiedad | Tipo | Obligatorio | Descripción | Constraints |
|---|---|---|---|---|
id | integer · int32 | No | — | — |
active | boolean | No | — | — |
contentSid | string | No | — | nullable |
name | string | No | — | nullable |
message | string | No | — | nullable |
createdAt | string · date-time | No | — | — |
conversationTemplateType | ConversationTemplateType | No | — | — |
contentVariables | object | No | — | nullable |
approvalStatus | ApprovalStatus | No | — | — |
botId | integer · int32 | No | — | — |
language | string | No | — | nullable |
queueIds | array<integer · int32> | No | — | nullable |
groupIds | array<integer · int32> | No | — | nullable |
ConversationTemplateType
0 = Utility; 1 = Marketing; 2 = Authentication
integer