v1

latestOpenAPI 3.0.02026-07-26318168886.7 KB
Categories

Update Category

To update current categories information with open API.<br>透過open API更新既有分類資訊

put/categories/{id}

Path parameters

idstring required

Category ID

Request body

Response

OK

idstring

Category ID<br>分類ID

seo_keywordsstring

SEO Keyword<br>SEO 關鍵字

keystring

Special category<br>特殊分類鍵

sort_settingstring

sort setting<br>排序設定

status'active' | 'removed'

Status<br>狀態

parent_idstring

Parent Category ID<br>母分類ID

prioritynumber float

Weight to control sorting<br>分類權重

created_by'admin' | 'pos'

Created By<br>創造來自

childrenobject[]

Array of Sub Categories Information<br>子分類資訊序列

product_countinteger

Product count, only available for /v1/categories with<br> params include_fields[] have value 'product_count'<br> 商品數目, 只適用於連同參數 include_fields[] 等於 'product_count' 時呼叫 /v1/categories

Example response

{
  "id": "5de4b3fe461b13002154587d",
  "name_translations": {
    "en": "Featured Products",
    "zh-hant": "精選商品",
    "zh-hk": "精選商品",
    "zh-cn": "精选商品",
    "zh-tw": "精選商品",
    "vi": "Sản phẩm nổi bật",
    "ms": "Produk Terpilih",
    "ja": "おすすめ商品",
    "th": "สินค้าแนะนำ",
    "id": "Produk Unggulan",
    "de": "Empfohlene Produkte",
    "fr": "Produits à la une"
  },
  "seo_title_translations": {
    "en": "SEO",
    "zh-hant": "SEO優化"
  },
  "seo_description_translations": {
    "en": "SEO",
    "zh-hant": "SEO內文"
  },
  "seo_keywords": "關鍵字修改",
  "key": "featured_products",
  "sort_setting": "quantity_sold:desc",
  "status": "active",
  "parent_id": "5de4b3fe461b13002154587f",
  "product_count": 5
}