Skip to main content
PATCH
Update a category

Yetkilendirmeler

x-api-key
string
header
gerekli

Your Store API key (pk_live_...). Create it in Developers › API keys.

x-store-hash
string
header
gerekli

The ID of the store the request is for. Shown in Developers › API keys.

Yol Parametreleri

id
string
gerekli

Category ID.

Örnek:

"23"

Gövde

application/json
name
string
Maximum string length: 191
slug
string

Lowercase letters, digits and dashes. Generated from the name when omitted.

Pattern: ^[a-z0-9]+(-[a-z0-9]+)*$
icon
string | null
active
boolean
varsayılan:true
parent_id
integer | null

Category of this store. null = top level.

position
integer
product_ids
(integer | string)[]

Product IDs or hash IDs of this store (max 1000). Replaces the current list; [] or null clears it.

Yanıt

Updated

success
boolean
gerekli
Örnek:

true

category
object
products
object[]