We advise the use of a developer to help you setup your API connection. We will offer an example of how to CREATE NEW USER on your LMS (core_user_create_users)
Let's review only the required REST (POST parameters):
- wsfunction=core_user_create_users
- users[0][username]= string (String required to set username of profile)
- users[0][auth]= string (String default to "manual")
- users[0][password]= string (String required to set user password)
- users[0][firstname]= string (String required to define user first name)
- users[0][lastname]= string (String required to define user last name)
- users[0][email]= string (String required to define user email address)
Sample URL:
https://courses.yoursite.com/webservice/rest/server.php?wstoken=XXXXXXXXXXXXXXX
&wsfunction=core_user_create_users
&users[0][createpassword]=0
&users[0][username]=johndoe
&users[0][auth]=manual
&users[0][password]=YourPassword00
&users[0][firstname]=John
&users[0][lastname]=Doe
&users[0][email]=johndoe@yourdomain.com
Bringing this altogether:
https://courses.yoursite.com/webservice/rest/server.php?wstoken=XXXXXXXXXXXXXXX&wsfunction=core_user_create_users&users[0][createpassword]=0&users[0][username]=johndoe&users[0][auth]=manual&users[0][password]=YourPassword00&users[0][firstname]=John&users[0][lastname]=Doe&users[0][email]=johndoe@yourdomain.com