Describe
REST API V2 does not work for Adding Courses to a Session. The code in the example file is the same as adding users to a session, which is working fine. As you can see in the screen shot the code even here on the project is wrong.
Screenshots

Expected behavior
I expected an error when navigating to the REST API to send back some message after adding a course or courses to using the example file for this
Desktop (please complete the following information):
- OS: MAC
- Browser any and all browsers
**Server
- OS: MAMP
- Version of Chamilo: 1.11.26
- Version of PHP: 7.4
Additional context
code is obviously wrong