You can delete a category with REST API in Magento 2 with rest/V1/categories/:categoryId
Action: DELETE
URL: <WEBSITE_URL>/rest/V1/categories/:categoryId
(Example: https://magento245.test/rest/default/rest/V1/categories/10)
You can delete a category with REST API in Magento 2 with rest/V1/categories/:categoryId
Action: DELETE
URL: <WEBSITE_URL>/rest/V1/categories/:categoryId
(Example: https://magento245.test/rest/default/rest/V1/categories/10)
If you ever created a category custom attribute for your own business requirement and want to update its value using REST API, then the given article is best suitable for you.
Let’s Assume you have created a Custom Category attribute with boolean type in the Magento admin panel.
Custom Category Attribute code: is_featured
You can fetch category-related data via REST API by rest/V1/categories/:categoryId in Magento 2.
The Response of the API will be all the necessary data related to the Category with custom attributes also.
Category API will respond only if you have resource permission to access the given role.
Magento_Catalog::categories