【发布时间】:2021-12-24 20:48:29
【问题描述】:
我不想给 coursecat 2222 中 ID 为 1111 的用户角色 courscreater ... 我使用 web 服务 core_role_assign_roles
我该怎么做……?
我用
https://MYMOODLE/webservice/rest/server.php?wstoken=MYTOKEN&wsfunction=core_role_assign_roles&moodlewsrestformat=json&assignments[0][roleid]=2&assignments[0][userid]=1111&assignments[0][contextlevel]=coursecat&assignments[0] ][instanceid]=2222
但它不起作用......每次 -> 无效参数
thx 4 帮助
【问题讨论】:
标签: moodle moodle-api