On this page6 sections
POST/api/products/update-categoryProductsPermission: product.update
Update Category Hierarchy
Renames or re-parents products from `sourceKey` category path to `targetKey` across the active tenant.
Authentication: Requires Authorization: Bearer <ACCESS_TOKEN> (Supabase JWT, OAuth2 M2M token, or integration token).
Request
Provide the following fields in the request payload.
sourceKeystringrequired
source Key parameter.
targetKeystring | nulloptional
target Key parameter.
Responses
Select a status code to inspect schema.
OK — Category updated across matching products.application/json
successenum('true')
Success (true).
messagestring
Message.
dataobject | null
Response payload or null.
POST/api/products/update-category
curl -X POST "https://api.invoger.com/api/products/update-category" \
-H "Authorization: Bearer <ACCESS_TOKEN>" \
-H "Content-Type: application/json" \
-d '{ "sourceKey": "Drinks", "targetKey": "Beverages" }'Interactive playground
Response
application/json
{
"success": true,
"message": "Category updated successfully",
"data": {
"updatedCount": 12
}
}