Your Community is getting an upgrade!
Read about our partnership with Higher Logic and how we will build the next generation of the Instructure Community.
Found this content helpful? Log in or sign up to leave a like!
Post URL: /api/v1/accounts/1/courses
I am trying to create a new course using the API and every time is creates a course with none of my values filled in and gives it a name of 'Unnamed Course' I have tried stripping the payload down so i am basically only posting the name but still no luck.
Here are the two payloads I have tried:
#1. "{\"account_id\":1,\"course\":{\"id\":0,\"name\":\"AD Name\"}}"
#2. "{\"id\":0,\"name\":\"AD Name\"}"
I am not sure what i am doing wrong. Any help would be great.
Thanks
Solved! Go to Solution.
What programming language are you using? Can you post your entire code?
Thanks for your reply,
I got it to work. It turns out i was missing ContentType = "application/json" in my request.
Thanks for your help
What programming language are you using? Can you post your entire code?
Thanks for your reply,
I got it to work. It turns out i was missing ContentType = "application/json" in my request.
Thanks for your help
To interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign InTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign In