Hi Everyone,
New to Docebo, this is my first post.
I have been using the API to migrate data from our old LMS system. I was able to create all of our old ILT courses and create sessions and events for each. This issue is I did not specify the evaluation type when I created the sessions, so I need to do that. I’m using:
https://sdge.docebosaas.com/course/v1/sessions/{{session_id}} as a put action
Here is my code body:
{
"name": "{{session_name}}",
"code": "{{session_code}}",
"min_enroll": 0,
"max_enroll": 500,
"score_base": 0,
"enrollment_deadline": "{{start_date}}",
"evaluation_type": 2,
"min_attended_dates_for_completion": 1,
"custom_rsvp_enabled": true
}
and here is my result:
{
"name": "Bad Request",
"message":
"Invalid parameter: evaluation_type"
],
"code": 1002,
"status": 400
}
Anyone have an idea why it’s not accepting evaluation type 2? It works when creating a class. I’ve tried different numbers, with and without quotes. I’m just not sure what the API is looking for. The API example just says: “evaluation_type” : 0
Any help would be appreciated.
Thanks in advance,
Justin