Assign User to Course via API
Assign User to Course via API. Use POST /users/{userid}/courses with JSON body of course Ids; invalid or already-assigned course IDs are ignored and emails are sent only if the user has logged in, or suppress emails by adding &sendmessage=false. Questions this answers: Can I stop assignment emails when assigning courses through the API?