OVIRO LogoOVIRO
Quản lý nhóm sản phẩmGợi ý sản phẩm

Cập nhật gợi ý

Cập nhật thông tin một bản ghi gợi ý

Endpoint

PUT /v1/productsuggestions/:id

Quyền: product.managecontent

Request Body

TrườngKiểuBắt buộcMô tả
company_idintID công ty
creator_idintID người thao tác
product_suggestion_group_idintKhôngID nhóm gợi ý
display_orderfloatKhôngThứ tự hiển thị
statusintKhôngTrạng thái (1: Active, 3: Disabled)

Lưu ý: product_id, object_type, object_id KHÔNG thể thay đổi khi edit (chỉ gán khi tạo).

Ví dụ JSON

{
    "company_id": 1,
    "creator_id": 10,
    "product_suggestion_group_id": 0,
    "display_order": 5,
    "status": 1
}

Response Schema

HTTP 200 - OK

Trả về ProductSuggestion Object sau khi cập nhật.

Error Codes

Lỗi dữ liệu đầu vào. Trả về mảng các mã lỗi:

Mã lỗiMô tả
error_company_id_requiredID công ty không được để trống
error_company_id_notfoundID công ty không tìm thấy
error_user1_id_requiredID người tạo không được để trống
error_user_id_notfoundID người tạo không tìm thấy

On this page