Skip to main content

Update a category

PUT 

/api/v2/catalog/categories/:category_id

Update a category by its id

Request

Path Parameters

    category_id stringrequired

    Possible values: >= 12 characters and <= 12 characters, Value must match regular expression ^[0-9a-z]+$

    Unique ID of the product category

    Example: 5m4v972ra9ue

Body

required

    name string

    Possible values: non-empty

    Name of the product category

    order integer

    Default value: 0

    Used to order the item, order defaults to ascending.

Responses

Schema

    id stringrequired

    Possible values: >= 12 characters and <= 12 characters, Value must match regular expression ^[0-9a-z]+$

    Unique ID of the product category

    name stringrequired

    Possible values: non-empty

    Name of the product category

    slug stringrequired

    Possible values: non-empty

    Slug of the product category

    order integerrequired

    Default value: 0

    Used to order the item, order defaults to ascending.

    created_at date-timerequired
    updated_at date-timerequired
Loading...