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:
143 sites
35 downloads
8 fans
Current versions available: 1

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 RSS

Show comments
  • Plugins bot
    Tue, 21 July 2020, 10:50 PM
    Approval issue created: CONTRIB-8181
  • Danijel Todic
    Tue, 12 July 2022, 10:59 PM
    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
    Thu, 21 July 2022, 7:25 PM
    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
    Wed, 1 Feb 2023, 12:23 PM
    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
    Mon, 21 Aug 2023, 1:16 AM
    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
    Thu, 26 Oct 2023, 2:24 AM
    I cannot find a way to become a fan of this fundamental plugin... without I would be inside a living hell. smile
  • Shah Haque
    Wed, 11 Dec 2024, 11:54 PM
    Hi is this plugin compatible with Moodle 4.4?
  • corvus albus
    Mon, 16 Dec 2024, 12:18 AM
    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