Moodle2.2 ¿ How to add grade categories to gradebook from an external application ?

Moodle2.2 ¿ How to add grade categories to gradebook from an external application ?

by albert verges -
Number of replies: 1

Anyone knows how to add grade categories from an external application?

The only solution I've found is to develop a php script to add rows directly to mdl_grade_items and mdl_grade_categories tables, but I'm not sure what must be stored on mdl_grade_items_history and mdl_grade_categories_history tables.

I now that the better solution would be to call a webservice function, but at this time does not exists any function on webservices to manage grade categories.

Does anyone know if there is any function or method to add a category from the moodle libraries?

In reply to albert verges

Re: Moodle2.2 ¿ How to add grade categories to gradebook from an external application ?

by Adrián Rodríguez -

Hello,

I'm working with webservices and I can create course. Now I would like to create a category using the web services (REST), but I do not see any option in the web services configuration.

There is any way to create categories using the moodle 2.2 webservice?