646 B
646 B
📤 updateArea.js
Aktualisiert die Koordinaten eines Bereichs (location_coordinates) basierend auf idLocation und
idMap.
Methode
PUT
Request-Body
{
"idLocation": 12,
"idMap": 3,
"x": 53.21421,
"y": 8.43212
}
Verhalten
- Führt
UPDATE location_coordinates SET x=?, y=? WHERE idLocation=? AND idMaps=? - Gibt bei Erfolg
success: truezurück - Nutzt MySQL-Pool und
connection.release()
Fehlerbehandlung
- 400: Fehlende Daten
- 404: Kein Eintrag gefunden
- 500: Interner Fehler