Docs Rizler

Courses

Reorder Content

POSThttps://app.rizzdial.com/api/knowledge-hub/courses/{id}/reorder-content
Reorder Content
curl --request POST \
  --url https://app.rizzdial.com/api/knowledge-hub/courses/<id>/reorder-content \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "category_id": 1,
  "ordered_items": [
    {
      "id": 4,
      "type": "lesson"
    },
    {
      "id": 2,
      "type": "quiz"
    }
  ]
}'
{
  "message": "Content reordered successfully.",
  "success": true
}

Reorder Content#

Reorders items inside one category. Prefer ordered_items. If that array is empty, lessons, subcategories, quizzes, and assignments are applied in that key order. Item ids are raw integers. 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.

category_idintegerbodyrequired

Raw numeric id (not base64). The live route validates integer|exists. Must belong to this course.

ordered_itemsarraybody

Each item: type (lesson, subcategory, quiz, assignment) and raw integer id

lessonsarraybody

Fallback raw lesson ids when ordered_items is omitted

subcategoriesarraybody

Fallback raw subcategory ids

quizzesarraybody

Fallback raw quiz ids

assignmentsarraybody

Fallback raw assignment ids

curl --request POST \
  --url https://app.rizzdial.com/api/knowledge-hub/courses/MQ==/reorder-content \
  --header 'Authorization: Bearer {{bearer_token}}' \
  --header 'Content-Type: application/json' \
  --data '{"category_id":1,"ordered_items":[{"type":"lesson","id":4},{"type":"quiz","id":2}]}'
messagestring

Content reordered successfully.