Update Custom Menu Link
PUT/custom-menus/:customMenuId
Updates an existing custom menu for a given company. Requires authentication and proper permissions.
Request
API Version
v3ID of the custom menu to update
- application/json
- Body
- Example (auto)
Bodyrequired
Title of the custom menu
URL of the custom menu
Icon information for the custom menu
Whether the menu must be displayed on the agency's level
trueWhether the menu must be displayed for sub-accounts level
trueWhether the menu must be displayed to all sub-accounts
trueMode for opening the menu link
iframenew_tabcurrent_tabList of sub-account IDs where the menu should be shown. This list is applicable only when showOnLocation is true and showToAllLocations is false
Which user-roles should the menu be accessible to?
alladminuserWhether to allow camera access (only for iframe mode)
Whether to allow microphone access (only for iframe mode)
{
"title": "Custom Menu",
"url": "https://custom-menus.com/",
"icon": {
"name": "yin-yang",
"fontFamily": "fab"
},
"showOnCompany": true,
"showOnLocation": true,
"showToAllLocations": true,
"openMode": "iframe",
"locations": [
"gfWreTIHL8pDbggBb7af",
"67WreTIHL8pDbggBb7ty"
],
"userRole": "all",
"allowCamera": false,
"allowMicrophone": false
}
Custom menu successfully updated
- application/json
- Schema
- Example (auto)
Schema
Status of update
Updated custom menu link
{
"success": true,
"customMenu": {
"id": "12345",
"icon": {
"name": "yin-yang",
"fontFamily": "fab"
},
"title": "Dashboard",
"url": "/dashboard",
"order": 1,
"showOnCompany": true,
"showOnLocation": true,
"showToAllLocations": true,
"locations": [
"gfWreTIHL8pDbggBb7af",
"67WreTIHL8pDbggBb7ty"
],
"openMode": "iframe",
"userRole": "all",
"allowCamera": false,
"allowMicrophone": false
}
}