Magento REST icon

Magento REST

Consume Magento REST API

Category → Update

AI-generated

Summary

Updates a category in Magento via PUT, sending category data as JSON body wrapped under 'category'.

Inputs

  • categoryId (required) — Category ID to update. Number type, required, default 0.
  • categoryData (required) — Category data in JSON format. Wrapped as {

Output shape

Magento category resource JSON. When simplifyOutput is enabled, custom_attributes array is converted to an object, extension_attributes are flattened into top-level keys, and nested structures are simplified.

Returned data is the API response, optionally processed by flattenResponse().

Examples

Example 1: Basic category update

categoryId: 5, categoryData: {

Links

Discussion