curl --request POST \
--url https://api.example.com/api/save-settings.php \
--header 'Content-Type: application/json' \
--data '
{
"systemPrompt": "<string>",
"welcomeMessage": "<string>",
"errorMessage": "<string>",
"contextMessagesCount": 123,
"calendarEnabled": true,
"botMode": "<string>",
"botName": "<string>"
}
'{
"success": true,
"message": "<string>",
"error": "<string>"
}Update bot configuration settings
curl --request POST \
--url https://api.example.com/api/save-settings.php \
--header 'Content-Type: application/json' \
--data '
{
"systemPrompt": "<string>",
"welcomeMessage": "<string>",
"errorMessage": "<string>",
"contextMessagesCount": 123,
"calendarEnabled": true,
"botMode": "<string>",
"botName": "<string>"
}
'{
"success": true,
"message": "<string>",
"error": "<string>"
}"ai" for RAG-powered responses or "classic" for flow-based conversationscurl -X POST https://your-domain.com/api/save-settings.php \
-H "Content-Type: application/json" \
-d '{
"systemPrompt": "You are a helpful customer service assistant.",
"welcomeMessage": "Hello! How can I help you today?",
"contextMessagesCount": 10,
"botMode": "ai"
}'
{
"success": true,
"message": "Configuración guardada correctamente"
}
{
"success": false,
"error": "Error al guardar configuración"
}
{
"success": false,
"error": "Invalid JSON input"
}
| Status Code | Description |
|---|---|
| 200 | Settings saved successfully |
| 405 | Method not allowed (only POST accepted) |
| 500 | Internal server error |
api/save-settings.php:19-42
"true" or "false")