Docs Rizler

Lessons

Update Lesson

PUThttps://app.rizzdial.com/api/knowledge-hub/lessons/update/{id}
Update Lesson
curl --request PUT \
  --url https://app.rizzdial.com/api/knowledge-hub/lessons/update/<id> \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --data 'title=<string>' \
  --data 'status=<string>' \
  --data 'description=<string>' \
  --data 'comment_status=<string>' \
  --data 'lesson_thumbnail=<string>'
{
  "data": {
    "id": "MQ=="
  },
  "message": "Lesson updated successfully.",
  "success": true
}

Update Lesson#

Updates a lesson. description is stored as content. If only lesson_thumbnail is sent (no title), the thumbnail is replaced (jpeg/png/jpg/gif, max 10 MB) and the response is { thumbnail_url }. A full update accepts a 2 MB thumbnail. Requires manage-knowledge-hub-lessons.

Authorizationstringheaderrequired

Bearer token in the format: Bearer {access_token}

idstringpathrequired

Base64 id from the matching list or builder. A raw numeric id is also accepted.

titlestringbody

Required for a full update. Max 255 characters

descriptionstringbody

Stored as content

statusstringbody

published or draft. Required for a full update

comment_statusstringbody

enabled, hidden, or locked. Required for a full update

lesson_thumbnailfilebody

Optional thumbnail

curl --request PUT \
  --url https://app.rizzdial.com/api/knowledge-hub/lessons/update/MQ== \
  --header 'Authorization: Bearer {{bearer_token}}' \
  --form 'title=Welcome' \
  --form 'status=published' \
  --form 'comment_status=enabled'
messagestring

Lesson updated successfully. or Thumbnail uploaded successfully.

dataobject

Updated lesson with base64 id, or { thumbnail_url } for thumbnail-only

POST /api/knowledge-hub/lessons/update/{id} is the same endpoint.