Cập Nhật
AI-generatedOverview
This node manages product categories in KiotViet, specifically supporting the update operation for categories. It allows users to update existing category details such as name, category code, parent category ID, description, display order, and custom attributes. This is useful for maintaining and organizing product categories dynamically within KiotViet's system, for example, updating category names or adding new attributes to reflect changes in product organization.
Use Case Examples
- Updating the name and description of an existing product category.
- Changing the parent category of a subcategory to reorganize the category hierarchy.
- Adding or modifying custom attributes for a category to include additional metadata.
Properties
| Name | Meaning |
|---|---|
| ID Danh Mục | The unique identifier of the category to update, required to specify which category to modify. |
| Tên Danh Mục | The new name of the category, required for the update operation. |
| Trường Bổ Sung | Additional optional fields to update such as category code, parent category ID, description, display order, and custom attributes. |
Output
JSON
id- The unique identifier of the updated category.categoryName- The updated name of the category.categoryCode- The updated category code.parentId- The updated parent category ID if applicable.description- The updated description of the category.orderIndex- The updated display order index.attributes- The updated list of custom attributes with name and value pairs.
Dependencies
- KiotViet API with authentication credentials
Troubleshooting
- If the update operation is not supported by the KiotViet API, the node throws an error indicating this limitation.
- Errors related to invalid or missing category ID will occur if the 'ID Danh Mục' parameter is not provided or incorrect.
- Ensure that numeric fields like 'parentId' and 'orderIndex' are valid numbers to avoid type errors.
- If the API credentials are invalid or expired, authentication errors will prevent the update operation.