How to add a particular student to moodle through REST API?

Hello, interested in the question of how using REST API in moodle, I add a particular student to a particular course? As well as the tests to open and close access from all(including those who are in the know, where is located this test) through the api?
April 3rd 20 at 18:40
2 answers
April 3rd 20 at 18:42
To enroll in the course you must use the method `enrol_manual_enrol_users`, while the deduction method `enrol_manual_unenrol_users`
April 3rd 20 at 18:44
In the Admin there is a section with a REST API and a variety of methods.
Yes, I know, but I can't find there is need - wade.Wiega commented on April 3rd 20 at 18:47

Find more questions by tags APIMoodle