#1.9.0 Product Category not found request

9 messages · Page 1 of 1 (latest)

latent bluff
#

i am not able to get list of categories
reference: https://docs.medusajs.com/api/admin#tag/Price-Lists/operation/DeletePriceListsPriceListVariantsVariantPrices
can you please let me know how i can list all the categories and create if i want to create one.

API reference for Medusa's Admin endpoints. All endpoints are prefixed with /admin.

Authentication

There are two ways to send authenticated requests to the Medusa server: Using a user's API token, or using a Cookie Session ID.

Expanding Fields

In many endpoints you'll find an expand query parameter that can be passed to the endpo...

regal sable
#

can you post the whole request you've made? And the error

latent bluff
#

const res = await axios.get( ${MEDUSA_BACKEND_URL}/admin/product-categories, { headers: headersRequest, } );
status:404
Not Found

regal sable
#

Have you typed it out or copied this request? There are no backticks for the template string

latent bluff
#

i have copied this request, it might be issue with copy/paste

regal sable
#

By the way, why not just use the built in categories page in the admin dashboard?

latent bluff
#

There is no categories page in the admin dashboard yet in version 1.9.0

regal sable
latent bluff
#

Thanks! Kosek