AI Sync

Lessons

Delete Lesson Media

POSThttps://app.rizzdial.com/api/knowledge-hub/lessons/media/delete
Delete Lesson Media
curl --request POST \
  --url https://app.rizzdial.com/api/knowledge-hub/lessons/media/delete \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "media_id": 9
}'
{
  "message": "Media deleted successfully.",
  "success": true
}

Delete Lesson Media#

Deletes one media row. media_id is the raw numeric id from Upload Lesson Media. Requires manage-knowledge-hub-lessons.

Authorizationstringheaderrequired

Bearer token in the format: Bearer {access_token}

media_idintegerbodyrequired

Raw numeric id (not base64). The live route validates integer|exists.

curl --request POST \
  --url https://app.rizzdial.com/api/knowledge-hub/lessons/media/delete \
  --header 'Authorization: Bearer {{bearer_token}}' \
  --header 'Content-Type: application/json' \
  --data '{"media_id":9}'
messagestring

Media deleted successfully.