API PUT to Course Offering Failing
I'm attempting to update a Course Offering to set IsActive to false.
This is the record I'm attempting to update:
{
"Identifier": "745849",
"Name": "Fall 2023 - Pharmacology I (NURS-3104-A-B)",
"Code": "X2388082480198",
"IsActive": true,
"CanSelfRegister": false,
"Description": {
"Text": "",
"Html": ""
},
"Path": "/content/enforced/745849-X2388082480198/",
"StartDate": "2023-08-14T04:00:00.000Z",
"EndDate": "2023-12-12T04:59:59.000Z",
"CourseTemplate": {
"Identifier": "403540",
"Name": "NURS-3104",
"Code": "NURS-3104"
},
"Semester": {
"Identifier": "204867",
"Name": "Fall 2023",
"Code": "202308"
},
"Department": {
"Identifier": "11601",
"Name": "School of Nursing",
"Code": "1604"
}
}
I'm PUTting this object to
https://«our-url»/d2l/api/lp/1.50/courses/745849
{
"Name": "Fall 2023 - Pharmacology I (NURS-3104-A-B)",
"Code": "X2388082480198",
"StartDate": "2023-08-14T04:00:00.000Z",
"EndDate": "2023-12-12T04:59:59.000Z",
"IsActive": false,
"Description": {
"Text": "",
"Html": ""
},
"CanSelfRegister": null
}
I'm receiving a 400 with this body
{
"type": "http://docs.valence.desire2learn.com/res/apiprop.html#invalid-parameters",
"title": "Invalid Parameters",
"status": 400,
"detail": "Request has missing or invalid parameters."
}
I literally copied the request body from the docs from here
and updated the fields.
What is missing?