Skip to main content
PATCH
Update a category.

Path Parameters

storeId
string
required

Store ID for this resource request

id
string
required

Category Id

Body

application/json
name
string
required

Name

Example:

"Shampoo"

slug
string

Slug

Example:

"shampoo"

description
string

Shampoos and conditioners

Example:

"Hair categories"

hide
string

Hide a category

Example:

false

displayOrder
string

Display order

Example:

0

parentCategoryId
string

Parent category id

Example:

"6124bc492f3660f743776404"

image
object

Category image

Response

Category updated.

id
string

Unique identifier for the resource that was used to create this category

Example:

"623d3455ec3c4b3548eb4a322"

name
string

Name

Example:

"Shampoo"

slug
string

Slug

Example:

"shampoo"

description
string

Shampoos and conditioners

Example:

"Hair categories"

hide
string

Hide a category

Example:

false

displayOrder
string

Display order

Example:

0

parentCategoryId
string

Parent category id

Example:

"6124bc492f3660f743776404"

image
object

Category image

date_created
string

Created date

Example:

"2022-03-25T03:17:44.092Z"

date_modified
string

Modified date

Example:

"2022-06-10T07:51:12.510Z"