How i can get competencies through the REST API?

How i can get competencies through the REST API?

by Станислав Сивинский -
Number of replies: 1

Hello everybody. I'm trying to get competencies through the REST API.

My query like that: 

http://localhost/moodle/webservice/rest/server.php?wstoken=5c3f3099aa9a767fdadb1261d88f0bfb&wsfunction=core_competency_list_competency_frameworks

and that:

http://localhost/moodle/webservice/rest/server.php?wstoken=5c3f3099aa9a767fdadb1261d88f0bfb&wsfunction=core_competency_list_competency_frameworks&contextid=1

and that:

http://localhost/moodle/webservice/rest/server.php?wstoken=5c3f3099aa9a767fdadb1261d88f0bfb&wsfunction=core_competency_list_competency_frameworks&contextid=49&contextlevel=80&instanceid=23


But I always get an error: Missing required key in single structure: context

How should I build my query? 

Thanks in advance.

Average of ratings: -
In reply to Станислав Сивинский

Re: How i can get competencies through the REST API?

by Станислав Сивинский -

The right answer:

http://localhost/moodle/webservice/rest/server.php?wstoken=5c3f3099aa9a767fdadb1261d88f0bfb&wsfunction=core_competency_list_competency_frameworks&context[contextid]=1