Skip to main content

Delete a category

DELETE 

/api/v2/catalog/categories/:category_id

Delete a category by its id

Requires all products within the category to be deleted first, empty sections will be implicitly deleted.

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

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...