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