Docs Rizler

Categories

Update Category

PUThttps://app.rizzdial.com/api/knowledge-hub/categories/update/{id}
Update Category
curl --request PUT \
  --url https://app.rizzdial.com/api/knowledge-hub/categories/update/<id> \
  --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"
  },
  "message": "Category updated successfully.",
  "success": true
}

Update Category#

Updates a category. Request visibility is stored as status. Optional image jpeg/png/jpg/gif, max 2 MB. Requires manage-knowledge-hub-categories.

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

Category title. Max 255 characters

visibilitystringbodyrequired

published or draft (stored as status)

comment_statusstringbodyrequired

enabled, hidden, or locked

descriptionstringbody

Optional description

imagefilebody

Optional replacement image

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

Category updated successfully.

dataobject

Updated category with base64 id

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