Skip to main content

Delete a category

DELETE 

https://api.staging.powerapi.com/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
curl -L -X DELETE 'https://api.staging.powerapi.com/api/v2/catalog/categories/:category_id' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
Request Collapse all
Base URL
https://api.staging.powerapi.com
Auth
Parameters
— pathrequired
ResponseClear

Click the Send API Request button above and see the response here!