DELETE /api/v1/me/lessons/{lessonId}/note
Deletes your private note on a lesson and every file attached to it,
permanently. There is no undo.
| Role in the organization | This endpoint |
|---|
OWNER | Allowed — deletes the key holder's own note only |
ADMIN | Allowed — deletes the key holder's own note only |
MEMBER | Allowed — deletes the key holder's own note only |
| Requirement | Rule for this endpoint |
|---|
| Business role | None |
| Resource scope | A lesson of the program of one of your enrollments |
| Participation | At least one of your enrollments makes the lesson readable |
| Resource state | Published lesson in a visible course |
| Parameter | Type | Required | Description |
|---|
lessonId | UUID | yes | A lesson you can read |
curl -X DELETE "$COHORTE_API_BASE_URL/api/v1/me/lessons/$LESSON_ID/note" \
-H "x-api-key: $COHORTE_API_KEY"
200 OK — the note and its files are deleted.
400 Bad Request — lessonId is not a UUID.
401 Unauthorized — missing, unknown or expired key.
404 Not Found — no note on this lesson (including a retry after a successful delete), a lesson you cannot read, or another school's.
| Field | Type | Nullable | Description |
|---|
data.deleted | boolean | no | Always true |
{
"success": true,
"data": {"deleted": true},
"correlationId": "c0ffee00-1111-4222-8333-444455556666"
}
- A
404 on retry means the note is already gone: treat it as success.