Docs Rizler

Courses

Update Course

PUThttps://app.rizzdial.com/api/knowledge-hub/courses/update/{id}
Update Course
curl --request PUT \
  --url https://app.rizzdial.com/api/knowledge-hub/courses/update/<id> \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --data 'title=<string>' \
  --data visibility=public \
  --data status=published \
  --data 'thumbnail=<string>' \
  --data 'description=<string>' \
  --data preview_enabled=true \
  --data 'preview_description=<string>' \
  --data preview_content_limit=123
{
  "data": {
    "id": "MQ==",
    "title": "Onboarding",
    "status": "draft",
    "added_by": 12,
    "thumbnail": null,
    "company_id": 12,
    "created_at": "2026-10-21T08:00:00.000000Z",
    "updated_at": "2026-10-21T08:00:00.000000Z",
    "visibility": "public",
    "description": null,
    "preview_enabled": false,
    "preview_description": null,
    "preview_content_limit": 1
  },
  "message": "Course details updated successfully.",
  "success": true
}

Update Course#

Updates course details. Send multipart/form-data when uploading thumbnail (jpeg, png, jpg, gif, max 10 MB). Requires edit-knowledge-hub.

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.

titlestringbodyrequired

Course title. Max 255 characters

visibilitystringbodyrequired

public or private

descriptionstringbody

Optional description

statusstringbody

published or draft. Defaults to the current status

preview_enabledbooleanbody

When true, Preview is allowed

preview_content_limitintegerbody

1–10. Defaults to the current limit or 1

preview_descriptionstringbody

Max 500 characters

thumbnailfilebody

Optional image. Replaces the current thumbnail

curl --request PUT \
  --url https://app.rizzdial.com/api/knowledge-hub/courses/update/MQ== \
  --header 'Authorization: Bearer {{bearer_token}}' \
  --form 'title=Onboarding' \
  --form 'visibility=public' \
  --form 'status=published'
messagestring

Course details updated successfully.

dataobject

Updated course with base64 id

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