Zalo OA icon

Zalo OA

Tương tác với Zalo Official Account API

Zalo OA → Cập Nhật Danh Mục

AI-generated

Summary

Update an existing product category in the Zalo Official Account store by specifying its ID and optionally altering its name, description, image URL, and display status.

Inputs

  • ID Danh Mục (required) — The unique identifier of the category to update.
  • Tên Danh Mục — The new name for the category.
  • Mô Tả Danh Mục — The new description for the category.
  • URL Hình Ảnh Danh Mục — The new image URL for the category.
  • Trạng Thái Danh Mục — The new display status of the category; either 'Hiển Thị' (show) or 'Ẩn' (hide).

Output shape

a single JSON object containing the API response from Zalo OA indicating success or failure of the update operation, including any relevant data or error messages.

The output contains the direct response from the Zalo OA API's /store/category/update endpoint. It does not paginate. Errors include descriptive messages and suggestions for troubleshooting.

Examples

Example 1: Update category with ID '123' to change its name to 'New Category Name' and status to 'hide'.

Set 'ID Danh Mục' to '123', 'Tên Danh Mục' to 'New Category Name', and 'Trạng Thái Danh Mục' to 'Ẩn'.

Discussion