XM

Retrieve Menu Items By Menu ID

This API facilitates retrieval of a menu and its sub-menus based on the specified menu ID. To retrieve data on browse menu, the Get Menu List API is used.

Path:

GET https://{baseurl}/api-xpm/menu/{menuId}

Headers

Content-Type : application/json

x-site-context : { "date": "2020-08-28T02:35:27.787Z", "channel": 12, "account": 5f493c9f30ec2a0007a94fc8", "stage": "sandbox" }

Parameters

Type : path

Name : The menu ID.

Required: true

Sample Request

https://{baseurl}/menu/5ed116e888926600073d115d

Response Code: 200

Message: OK

Description: You will see this message when the details are successfully retrieved.

{
"_id": "5ed116e888926600073d115d",
"channel": [
12
],
"path": "javascript:void(0)",
"isActive": true,
"name": "ADULTS",
"label": "ADULTS",
"order": 1,
"images": [],
"videos": [],
"params": [
{
"_id": "5ed4a8b9df194a000847424f",
"kind": "",
"value": "",
"id": "5ed4a8b9df194a000847424f"
}
],
"createdAt": "2020-05-29T14:06:32.417Z",
"updatedAt": "2020-08-20T16:56:36.756Z",
"__v": 0
}

Change Log

  • Last updated - Oct 2020