I am working with the java client.
I want to enroll someone in a course.
As a quick test, I modified the index.jsp by changing the exampleCreateUser() function to this:
function exampleCreateUser() {
showData();
document.getElementById("POSTField").checked = true;
document.getElementById("actionField").value = "/d2l/api/lp/1.0/enrollments/";
document.getElementById("dataField").value = "{\n \"OrgUnitId\": \"12345\",\n \"UserId\": \"12345\",\n \"RoleId\": \"123\" \n}";
}
I get a 404 message. I next noticed that the document I linked above mentions that enrollment was deprecated in 1.1. I used 1.0 just because that is what the index.jsp used for the whoami code.
Long story short, I've tried 1.1, 1.2, 1.3, all return a 404 message.
What is the proper path to the enrollment API?