H
HytaleAdminAPI v1.0.0
Zurück

Icons

Base: /api/icons

Server-Icon und MOTD (Message of the Day) verwalten

Handler: IconHandler
GET /api/icons/motd

MOTD abrufen

Gibt die aktuelle MOTD (Message of the Day) zurück.

Antwort-Beispiel

{"motd":"§aWillkommen auf dem Server!\n§7Viel Spaß beim Spielen!"}

cURL

curl http://localhost:5550/api/icons/motd
POST /api/icons/motd

MOTD setzen

Setzt eine neue MOTD.

Request Body

Feld Typ Pflicht Beschreibung
motd string Ja Neue MOTD (unterstützt § Farbcodes)

Antwort-Beispiel

{"success":true,"message":"MOTD updated"}

cURL

curl -X POST http://localhost:5550/api/icons/motd \
  -H 'Content-Type: application/json' \
  -d '{"motd":"§aWillkommen!\n§7Neue MOTD!"}'