Skip to main content

GET Category by searching in category names

GET 

/v/ct/:searchWord

Provides the ability to get a list of categories that contain the specified search term (search word or phrase) in their names.

Returns


Specify a search term (word or phrase) and the endpoint will return information about categories that contain the specified search term in their names.

If no category matches the query, the resulting response contains only: "status" = "OK", indicating that the request was successfully sent and executed.

This API call provides a flexible way to search for categories in your PIMS and can be useful when you need to find categories that meet certain search criteria, such as identifying all categories related to a particular product line.

Request

Path Parameters

    searchWord stringrequired

    Search word or phrase in category name

Responses

success

Schema
    oneOf
    status stringrequired

    The status of the API request. A value of "OK" indicates that the request was successfully sent and processed.

    categoriesTree object[]required

    Structure and hierarchy of categories in PIMS

  • Array [
  • id integerrequired

    Automatically calculated value that represents a unique PIMS internal category ID. You can use to retrieve more details about the category.

    cat_name stringrequired

    The name of the category identified by category ID.

    cat_parent_id integerrequired

    The ID of the parent category.

    cat_path_id stringrequired

    The calculated relative path of the category, uses '>' as a unique category ID separator.

    cat_path stringrequired

    The calculated relative path of the category, uses '>' as a category name separator.

    cat_order integerrequired

    The proper sort order for the categories when displayed in a user interface.

    cat_rank integerrequired

    A numerical classification for the category's rank.

    cat_data object

    Metadata associated with the category. Extendable. In this endpoint, the cat_data metadata field includes only the "cat_image" attribute, the path to the category image.

    cat_image stringrequired

    The path for the image of the category.

  • ]
Loading...