Details
Description
URI : http://host:port/site/_rp/menuId./create/parentTargetId
where
menuId = id of menu where a new item must be added
parentTargetId = id of parent; the new item will be appended to the children of this parent
Request-data: a JSON map containing the properties of the menu item
Response-data: upon success a JSON map, containing the new item id under the key "data"
Example:
URI:
http://localhost:8080/site/_rp/0a4b8ed9-0ce6-47b9-8de9-8811eadfd9ff./create/2e0ad79a-5c5d-402a-ae56-f9db1e6cd773
Request-data:
{"name": "Events 1", "linkType": "SITEMAPITEM", "link": "event01", "roles": ["sitewriter"]}Reponse-data:
{"success": true, "message": "Item created successfully", "data": "8dab930c-c97f-4135-9027-33a9bc465d40"
}