Webservice manage sections

Local plugins ::: local_wsmanagesections
Maintained by corvus albus
Webservice Manage Sections allows you to manage the section structure of a moodle course via REST API. You can create, delete and move sections. Furthermore you can get the sectionsettings (name, summary, visibility, section format options, ... ) and update them.
Latest release:
174 sites
55 downloads
9 fans
Moodle 3.3, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 3.10, 3.11, 4.0, 4.1, 4.2

This local plugin allows you to manage the section structure of a moodle course via REST API.
Functions are build analog to the core_course function.

"Webservice manage sections" gives you the following functions:

  • local_wsmanagesections_create_sections: create sections at a defined position,
  • local_wsmanagesections_delete_sections: delete sections with given sectionnumber or -id,
  • local_wsmanagesections_move_section: move a section to a definded position,
  • local_wsmanagesections_get_sections: get the settings of given sections (name,visibility, format options, ...),
  • local_wsmanagesections_update_sections: update  the settings of given sections (name,visibility, format options, ...).

The webservice documentation for the above functions can be found at http://yoursite.com/admin/webservice/documentation.php.

After installing the plugin you have to add the functions to your rest-service.

There is some python sample code at https://github.com/corvus-albus/corvus-albus-moodle-local_wsmanagesections-script-examples.

This plugin can be installed by following the official Moodle documentation - Installing plugins.
This plugin can be used in accordance with the official Moodle documentation - Using web services.

Potential privacy issues

None.

Screenshots

Screenshot #0
Screenshot #1
Screenshot #2
Screenshot #3
Screenshot #4
Screenshot #5

Contributors

corvus albus (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments

Mostrar comentários
  • Plugins bot
    terça, 21 de jul. de 2020 às 22:50
    Approval issue created: CONTRIB-8181
  • Danijel Todic
    terça, 12 de jul. de 2022 às 22:59
    How is the situation with this plugin, when will this plugin officially support moodle 4.0 ?
    how stable is the latest version with moodle 4.0?
  • corvus albus
    quinta, 21 de jul. de 2022 às 19:25
    Hi Danijel,
    we use the plugin at our school and pan to upgrade to moodle 4.0 until september.
    Moodle 4 will be supported and if everything goes well changes will be done until september.
    Cheers corvus albus
  • Ben Girard
    quarta, 1 de fev. de 2023 às 12:23
    Any update on full compatibility with 4.x??? We're dying to use to use this plug. Even wondering why this is NOT in the core API....
  • corvus albus
    segunda, 21 de ago. de 2023 às 01:16
    I made some tests with moodle 4.2 and the plugin works like before.
    Uploaded a new version with a tiny little fix.
  • Ben Girard
    quinta, 26 de out. de 2023 às 02:24
    I cannot find a way to become a fan of this fundamental plugin... without I would be inside a living hell. sorriso
  • Shah Haque
    quarta, 11 de dez. de 2024 às 23:54
    Hi is this plugin compatible with Moodle 4.4?
  • corvus albus
    segunda, 16 de dez. de 2024 às 00:18
    Although I have only tested up to version 4.2, there is no reason why the plugin shouldn't work with version 4.4. However, with version 4.5 introducing subsections as activities, thorough testing is needed for 4.5.
Please login to post comments