Update a hierarchy
PUT/pcm/hierarchies/:hierarchyID
Updates a hierarchy. You can do a partial update, where you specify only the field value to change.
Custom Attributes
Custom attributes allow you to extend the data model with your own key-value data. They are supported on products, hierarchies, nodes, and prices.
You can define up to 100 custom attributes in each group (shopper_attributes and admin_attributes). Both keys and values must be strings. Attribute names must be no longer than 64 characters and can only contain alphanumeric characters, underscores, and hyphens. Values must be no longer than 512 characters.
shopper_attributesare visible in shopper-facing catalogs and accessible to both shoppers and administrators. Ideal for customer-facing data, such as promotional labels or product tags.admin_attributesare private and not visible in catalogs. Best suited for internal operational data, such as cost tracking or workflow metadata.
See Custom Attributes.
Request
Responses
- 200
- 403
- 404
- 422
- 500
Successfully returns the updated hierarchy
Forbidden
Bad Request. Not Found.
Bad request. The request failed validation.
Internal server error. There was a system failure in the platform.