import requests url = "http://127.0.0.1:8000/api/event/3" data = { "name": "this is a test and a change", # 'description': 'Some long ass description', # 'start_date': '2025-03-28T23:30:00Z', "end_date": "2025-04-07T23:30:00Z", # 'submit_by_date': '2025-04-03T23:30:00Z', # 'created_by': 'me@domdit.com', "division": 2, } resp = requests.put(url, data=data) print(resp.status_code) print("------------") print(resp.json())