core_user_delete_users

core_user_delete_users

by Moritz Grey -
Number of replies: 1

Hey everyone, 

i use the Api "core_user_delete_users" and i take the following url to delte the user: 


MyMoodle/webservice/rest/server.php?wstoken=MyToken&wsfunction=core_user_delete_users&moodlewsrestformat=json&[userids]=2652


But i get the following Message, that the paramater ist incorrect:

{"exception":"invalid_parameter_exception","errorcode":"invalidparameter","message":"Ung\u00fcltiger Parameterwert"}


I think the userids is the id of the user which i can see in the mdl_user table at position one?


Thanks everyone for help smile 

MoGr
 


Average of ratings: -
In reply to Moritz Grey

Re: core_user_delete_users

by Moritz Grey -

This is the corret URL 


MyMoodle/webservice/rest/server.php?wstoken=MyToken&wsfunction=core_user_delete_users&moodlewsrestformat=json&userids[0]=272