Activity Comments (Read & Delete)
The Activity Comments feature lets admins and moderators view and manage comments on course activities.
Learners may leave comments on lessons/projects/quizzes, and admins can read or delete them when necessary.
Fields
| Field | Type | Description |
|---|---|---|
| ID | String | Unique identifier of the comment. |
| Activity ID | String | The activity (lesson/project/quiz) the comment belongs to. |
| Comment | Text | The content of the learner’s comment. |
| Lesson | String | The lesson linked to the activity. |
| Course | String | The course linked to the lesson. |
| Created Date | DateTime | When the comment was originally created. |
| Modified Date | DateTime | When the comment was last updated. |
1. Read Comments
Admins can view all comments related to activities.
Example Response (JSON):
[
{
"id": "cmt-101",
"activityId": "act-2025-001",
"comment": "I really enjoyed this coding exercise!",
"lesson": "Variables in Python",
"course": "Python Basics",
"createdDate": "2025-02-01T12:45:00Z",
"modifiedDate": "2025-02-01T12:45:00Z"
},
{
"id": "cmt-102",
"activityId": "act-2025-002",
"comment": "Could you explain loops in more detail?",
"lesson": "Control Flow",
"course": "Python Basics",
"createdDate": "2025-02-02T08:30:00Z",
"modifiedDate": "2025-02-02T08:30:00Z"
}
]
2. Delete Comment
Admins or moderators can delete inappropriate or irrelevant comments.
Steps:
Navigate to Backoffice → Activities → Comments.
Find the comment to delete.
Click Delete 🗑️.
Confirm in the dialog box.
Example Request:
json
Copy code
{
"id": "cmt-101",
"action": "delete"
}
Response:
json
Copy code
{
"success": true,
"message": "Comment deleted successfully"
}
Best Practices
Regularly review comments for inappropriate or spam content.
Always retain Created Date and Modified Date in logs for audit purposes.
If possible, keep a soft delete/archive instead of hard delete to maintain history.
Moderate comments to ensure a positive and safe learning community.