Webservice functie: local_coursereport_remove_users_from_preset
local_coursereport_remove_users_from_preset
Remove users from a preset
Arguments
presetidnumber (Required)
Snapshot id
General structure
string //Snapshot id
XML-RPC (PHP structure)
[presetidnumber] => string
REST (POST parameters)
presetidnumber= string
userids (Default to "null")
JSON userids
General structure
string Default to "null" //JSON userids
XML-RPC (PHP structure)
[userids] => string
REST (POST parameters)
userids= string
usernames (Default to "null")
JSON usernames
General structure
string Default to "null" //JSON usernames
XML-RPC (PHP structure)
[usernames] => string
REST (POST parameters)
usernames= string
useremailaddresses (Default to "null")
JSON useremailaddresses
General structure
string Default to "null" //JSON useremailaddresses
XML-RPC (PHP structure)
[useremailaddresses] => string
REST (POST parameters)
useremailaddresses= string
Response
General structure
object {
success int //Status returned
}
XML-RPC (PHP structure)
Array
(
[success] => int
)
REST
<?xml version="1.0" encoding="UTF-8" ?>
<RESPONSE>
<SINGLE>
<KEY name="success">
<VALUE>int</VALUE>
</KEY>
</SINGLE>
</RESPONSE>
Error message
REST
<?xml version="1.0" encoding="UTF-8"?>
<EXCEPTION class="invalid_parameter_exception">
<MESSAGE>Invalid parameter value detected</MESSAGE>
<DEBUGINFO></DEBUGINFO>
</EXCEPTION>
Restricted to logged-in users
Yes
Callable from AJAX
No