AI Sync

Categories

Create Category

POSThttps://app.rizzdial.com/api/knowledge-hub/courses/{courseId}/categories/create
Create Category
curl --request POST \
  --url https://app.rizzdial.com/api/knowledge-hub/courses/<courseId>/categories/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --data 'title=<string>' \
  --data visibility=published \
  --data comment_status=enabled \
  --data 'image=<string>' \
  --data 'description=<string>'
{
  "data": {
    "id": "MQ==",
    "title": "Week 1",
    "status": "published"
  },
  "message": "Category created successfully.",
  "success": true
}

Create Category#

Adds a category to a company course. Request visibility is stored as status (published or draft). Optional image is jpeg/png/jpg/gif, max 2 MB. Requires manage-knowledge-hub-categories.

Authorizationstringheaderrequired

Bearer token in the format: Bearer {access_token}

courseIdstringpathrequired

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

titlestringbodyrequired

Category title. Max 255 characters

visibilitystringbodyrequired

published or draft (stored as status)

comment_statusstringbodyrequired

enabled, hidden, or locked

descriptionstringbody

Optional description

imagefilebody

Optional category image

curl --request POST \
  --url https://app.rizzdial.com/api/knowledge-hub/courses/MQ==/categories/create \
  --header 'Authorization: Bearer {{bearer_token}}' \
  --form 'title=Week 1' \
  --form 'visibility=published' \
  --form 'comment_status=enabled'
messagestring

Category created successfully.

dataobject

Created category with base64 id and numeric course_id