If you’re getting the below error when you run the Magento Category to NetSuite Add/Update flow, and if the error is from Magento 2 server, to update the Magento 2 server and resolve the error, see Fix for empty category field values in REST calls #28828
Base table or view not found: 1146 Table 'ent240.catalog_category_product_index_store0' doesn't exist, query was: SELECT `cat_index`.`category_id`, count(cat_index.product_id) AS `count` FROM `catalog_category_product_index_store0` AS `cat_index` WHERE (cat_index.category_id in (3, 4, 5, 6)) GROUP BY `cat_index`.`category_i
Note: If you’re an existing customer migrating the Magento 2 instance from the previous Magento 2 edition, the category flow will not cause any error.
The call works with /V1/categories in postman. There's only one store id defined in this Magento setup. Do you know more about the /all?? I read the article you posted and it doesn't seem very relevant but I'll have the Magento team review it.
/all is used to get all category from each and every stores. It looks like permission issue, login into the M2 admin portal and click on system->userRoles and check the role scope permission to your user, if its is custom then change this to all. then it will work fine with all* in the URL.