How can I tell if I have permisison to post a syllabus?

Jump to solution
matt_price
Community Explorer

I'm trying to post the syllabus to one of my own courses.  If I am reading the API docs correctly, this should be done via the "update a course" endpoint at `PUT /api/v1/courses/:id`.  I have tried this with CURL:

 curl -X PUT  -d syllabus_body='<h2>TESTMEPLEASE</h2>'  -H 'Authorization: Bearer TOKEN_SECRET  "https://uni-base-url/api/v1/courses/XXXXX"

I get back a valid JSON response but the response object  does not contain the syllabus_body property, and when I go to the website to check, the syllabus has not been updated. I'm wondering if maybe the administrators at my university have not granted instructors that authorization scope. Is there a way for me to check whether I have this permission (I will also ask tech support when I see them, but I'd like to know if I can just find this out myself).

Thanks!

Labels (2)
1 Solution
robotcars
Community Champion

I've had this issue too...

The payload needs to be nested in a 'course' object

course[syllabus_body] = '<h2>TESTMEPLEASE</h2>'

Similar example,

https://community.canvaslms.com/message/44908?commentID=44908#comment-44908 

View solution in original post

0 Likes