Merchandise Hierarchy Level
A merchandise hierarchy level record exposes a merchandise hierarchy level to REST web services. This record is not a subrecord and does not contain a subrecord.
The REST API Browser includes information about the field names and field types of the merchandise hierarchy level 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 level REST record is merchandisehierarchylevel.
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 Level
POST {{REST_SERVICES}}/record/v1/merchandisehierarchylevel
{
"name": "Level 2",
"description": "L2",
"insertbefore": {
"id": 1
}
}
Updating a Merchandise Hierarchy Level
PATCH {{REST_SERVICES}}/record/v1/merchandisehierarchylevel/{{id}}
{
"name": "Level 2 updated",
"description": "L2 updated",
"insertbefore": {
"id": 1
}
}