Merchandise Hierarchy Node

A merchandise hierarchy node record exposes a merchandise hierarchy node to REST web services. This record is not a subrecord. This record contains one subrecord with the ID hierarchyversions.

The REST API Browser includes information about the field names and field types of the merchandise hierarchy node record and about the HTTP methods, request parameters, and operations available to this record.

For information on using the REST API Browser, see The REST API Browser.

Record ID

The record ID for the merchandise hierarchy node REST record is merchandisehierarchynode.

Prerequisites

You must enable the Merchandise Hierarchy feature before you can use this record through REST web services. This feature depends on the Custom Segments feature.

Code Sample

Creating a Merchandise Hierarchy Node

              POST {{REST_SERVICES}}/record/v1/merchandisehierarchynode
{
    "name": "Node 2",
    "description": "N2"
} 

            

Updating a Merchandise Hierarchy Node

              PATCH {{REST_SERVICES}}/record/v1/merchandisehierarchynode/{{id}}
{
    "name": "Node 2 updated",
    "description": "N2 updated",
    "hierarchyversions":{
        "items":
        [
            {
                "hierarchylevel":{
                    "id": 3
                },
                "hierarchyversion":{
                    "id": 2
                },
                "parentnode": 1,
                "isincluded": true
            }
        ]
    }
} 

            

Related Topics

General Notices