Course Page Modify API Guidance

Course Page Modify API Guidance

by Kesavan P -
Number of replies: 1

Hello,

I am seeking assistance regarding the customization of course page options in Moodle 3.2 using the API. After creating or importing a course, I need to update specific settings or options on the course page programmatically via the API.

Here are the specific requirements where I need support:

1. Updating course visibility or enabling specific settings (e.g., format, sections) via API calls after a course is created or imported.

2. Automating updates to course metadata such as `fullname`, `shortname`, or `summary` through the API.

3. Implementing custom API endpoints or leveraging existing ones to make the necessary modifications seamlessly.

4. Best practices for authenticating and interacting with the Moodle API in Moodle 3.2.

I would appreciate it if you could provide guidance or relevant documentation to help implement these updates effectively. If there are specific configurations or plugins required, kindly let me know.

Thank you for your assistance, and I look forward to your response.

Average of ratings: -
In reply to Kesavan P

Re: Course Page Modify API Guidance

by Mark Johnson -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Hi Kesavan,

For API functions, have a look at the "core_course" area on this list: https://docs.moodle.org/dev/Web_service_API_functions.

For information about authenticating and calling Moodle's web service API, see https://docs.moodle.org/dev/Creating_a_web_service_client

For further info, see https://moodledev.io/docs/5.0/apis/subsystems/external

However, if you are really using Moodle 3.2 you will notice that a lot of those functions were added later. 3.2 has been end-of-life for over 7 years so you will find it difficult to find people who can give you relevant advice, not to mention that there will be serious security fixes you are missing. I would highly recommend you upgrade to a supported release before attempting custom development.

Average of ratings:Useful (1)