import urllib.request import json import sys sys.stdout.reconfigure(encoding='utf-8') ticket_id = "e31a9d3b-f6aa-44e8-85cb-0aef14e43eb1" url = f"http://localhost:5179/feedback/{ticket_id}" payload = { "status": "Resolved", "fixNote": "Die Wurf-Liste kann nun über das entsprechende Dropdown-Menü alphabetisch sortiert ('Alphabetisch A-Z' / 'Z-A') sowie nach Jahren gefiltert werden. Bitte lade die Seite neu." } try: req = urllib.request.Request( url, data=json.dumps(payload).encode('utf-8'), headers={"Content-Type": "application/json"}, method="PUT" ) with urllib.request.urlopen(req) as res: print(f"Status: {res.status}") print("Successfully resolved ticket!") except Exception as e: print("Error:", e)