P
P
Pavel Bykov2019-12-19 13:02:21
API
Pavel Bykov, 2019-12-19 13:02:21

How to add a specific student to moodle via REST API?

Hello, I'm interested in the question, how can I add a specific student to a specific course through the REST API in moodle? And also how to open and close access for everyone on tests (including those who are aware of where this test is located) through api?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Pavel Bykov, 2019-12-19
@mafof

To enroll in a course, you must use the `enrol_manual_enrol_users` method, and to deduct the `enrol_manual_unenrol_users` method

D
Darkhan Kamaliev, 2019-12-19
@darakanoit

The Admin has a section with REST API and many methods.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question