I am trying to write a program for my team to update course start and end times through the API using Python. The end_at time isn't updating. What am I doing wrong? I've code below for obvious reasons.
import requests
secret_token = "MY_SECRET_TOKEN"
headers = {'Authorization' : 'Bearer ' + secret_token}
pagesURL = 'MY_INSTITUTION/api/v1/courses/COURSE_ID'
r = requests.get(pagesURL,headers = headers)
i = r.json()
start = i["start_at"]
time = '2024-10-05T17:19:17Z'
end = {"course[end_at]":time}
data = requests.post(pagesURL,headers = headers, params = end)
print(start)
print(i['end_at'])