Hello,
Could someone help me out with an API question?
I'm having trouble posting to the Users Enrollment Create endpoint and wonder if someone from this forum could look at what i'm passing over and provide some guidence.
I am succesffully creating a user object, applying the address, & applying the phone.
This is the data i'm pushing to the ,
{
"user_id": 0,
"grade_level_id": 0,
"school_level_id": 0,
"school_year_label": "string",
"enroll_date": "string",
"depart_date": "string",
"current_year": true,
"has_grades": true,
"grade_repeated": true,
"graduated": true,
"allow_edit": true,
"allow_delete": true,
"future_enrollments": true,
"role_ids": [
0
]
}
I'm passing the user_id from User Create endpoint, But in my testing i'm using a test dummy user i've created.
I'm finding the grade_level_id from Core Grade Levels:
{
"id": 6600, << i'm using this for grade_level_id
"active": true,
"description": "Holy Names University",
"name": "Freshman",
"promote_to_code": 3
}
I'm finding the school_level_id from Core Levels:
{
"id": 1921, << i'm using this for school_level_id
"abbreviation": "HNU",
"name": "Holy Names University"
}
I'm finding the school_year_label from Core years ( current yeary = true ):
{
"id": 8648,
"begin_date": "2021-08-16T00:00:00-04:00",
"current_year": true,
"end_date": "2022-08-15T00:00:00-04:00",
"published": true,
"school_year_label": "2021-2022"
}
enroll_date = todays date
depart_date = “”
"current_year": true
"has_grades": true
"grade_repeated": true
graduated": true
allow_edit": true
allow_delete": true
"future_enrollments": true
I'm finding the role_ids from Core Roles
{
"id": 57904,
"base_role_id": 14,
"hidden": false,
"name": "Student"
}