WikiAPI-Katalogmailmail.config.update

mail.config.update

POST /api/admin/mail/config mail

SMTP-Konfiguration speichern

Hilfe

Speichert die Mail/SMTP-Konfiguration. Bei maskiertem Passwort (********) wird das bestehende Passwort beibehalten.

Parameter

Name Typ Required Default Beschreibung
smtp_server string Ja SMTP-Server-Adresse
smtp_port integer Nein 587 SMTP-Port (Standard: 587)
encryption string Nein starttls Verschlüsselung (none, starttls, ssl)
username string Nein SMTP-Benutzername
password string Nein SMTP-Passwort (******** = bestehendes beibehalten)
sender_address string Ja Absender-Adresse
recipient_addresses string Ja Empfänger-Adressen (kommagetrennt)
notify_ollama_down boolean Nein True Benachrichtigung bei Ollama-Ausfall
notify_datasource_down boolean Nein True Benachrichtigung bei Datenquellen-Fehler
notify_index_error boolean Nein True Benachrichtigung bei Index-Fehler
status_report_enabled boolean Nein False Regelmäßigen Status-Report aktivieren
status_report_interval string Nein weekly Intervall für Status-Reports

Rueckgabe

Bestätigung der Speicherung

Beispiel-Prompts

  • Konfiguriere SMTP mit Server smtp.firma.de:587
  • Mail-Konfiguration speichern

Confirmation

Diese Funktion erfordert eine Bestaetigung vor der Ausfuehrung.

Template: mail-konfiguration speichern

Changelog

Area: mail | Action: update

HTTP-Request (curl)

curl -X POST 'http://HOST:8502/api/admin/mail/config' \
  -H 'Cookie: kiara_admin_session=SESSION' \
  -H 'X-Requested-With: XMLHttpRequest' \
  -H 'Content-Type: application/json' \
  -d '{
    "smtp_server": "...",
    "smtp_port": "...",
    "encryption": "...",
    "username": "...",
    "password": "...",
    "sender_address": "...",
    "recipient_addresses": "...",
    "notify_ollama_down": "...",
    "notify_datasource_down": "...",
    "notify_index_error": "...",
    "status_report_enabled": "...",
    "status_report_interval": "..."
  }'

Metadaten

raw_responseJa
Kategoriemail