0

I am using Python to access Magento 2 Rest API categories.

The url that I am using is this:

https:///rest/<store_code>/V1/categories/15647

The URL Path that is being returned is this:

footwear/weights/hiking-boots-shoes

however the correct path is:

footwear/men/hiking-boots-shoes

Most of the url_path for the categories are coming back correctly. But I estimate at least 15% error rate in the url_path

3
  • Is "hiking boots shoes" added to both Men and Weights categories? Commented Jun 7, 2022 at 16:21
  • Weights does not exist as a category Commented Jun 7, 2022 at 18:17
  • All of the erroneous url_path that I am extracting from Magento Rest API are giving me a 404 error because they do not exist Commented Jun 7, 2022 at 18:18

1 Answer 1

0

I am trying to avoid doing backend development for this issue and have thus come up with a solution to create the field url_path by using the url_key, parent_id and level.

It is a workaround for a field that should be working in Magento, but I would rather not waste company ressources trying to correct this error when I can build the url_path myself.

Thanks

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.