Hi nmajethiya,
The course values need to be within a course object, indicated in the API documentation with the course[ ] notation.
So your JSON data should look something like this:
{
"course" :
{
"name" : "API Development Using NodeJS",
"course_code" : 1,
"start_at" : "2019-09-27T11:43:36.174Z",
"end_at" : "2019-10-27T11:43:36.174Z",
"license" : "private",
"is_public" : true,
"is_public_to_auth_users" : false,
"public_syllabus" : true,
"public_syllabus_to_auth" : false,
"public_description" : "This course will help you to learn how to create APIs using NodeJS. If you know the basics of NodeJS, this course will help you to create standard APIs",
"allow_student_wiki_edits" : false,
"allow_wiki_comments" : true,
"allow_student_forum_attachments" : true,
"open_enrollment" : true,
"self_enrollment" : true,
"restrict_enrollments_to_course_dates" : true,
"term_id" : 1,
"sis_course_id" : 1,
"integration_id" : 1 ,
"hide_final_grades" : true,
"apply_assignment_group_weights" : true,
"time_zone" : "Asia/Kolkata",
"default_view" : "feed",
"syllabus_body" : "This is dummy syllabus body"
},
"offer" : true,
"enroll_me" : true,
"enable_sis_reactivation" : false
}
Alex
This discussion post is outdated and has been archived. Please use the Community question forums and official documentation for the most current and accurate information.