REST API - Lesson Content (message/content field) Cannot Be Written via Any Endpoint
I reported this more than two weeks ago and still haven't received an update. Is this so complicated to resolve?
Shahjahan Jewel can you maybe take a look and speed this up...I can't work on my project, as long as the API is not working...
Summary:
We are unable to write or update lesson content (message field) through the REST API. The official documentation describes a PUT /wp-json/fluent-community/v2/courses/{course_id}/lessons/{lesson_id} endpoint that accepts a content parameter, but this endpoint does not exist in the actual implementation.
We have a training platform with 6 courses and need to programmatically populate ~40 lessons with content from our knowledge base. Currently the only way to add lesson content appears to be through the WordPress admin UI.
Jörn Weber We will look into this promptly. Sorry for the inconvenience.
https://dev.fluentcommunity.co/rest-api/lessons.html#update-a-lesson
Jörn Weber, there was an issue with the API endpoint and payload examples in the documentation. We've updated it now. Please visit the above link and try the Create and Update Lesson APIs with the updated examples. Let me know if you face any issues.
Tawsif Ahmed Riyad Thank you! That works for me!