Menus
Get Channel Menus
GET https://api.bigcommerce.com/stores/{store_hash}/v3/channels/{channel_id}/channel-menusRequest
Returns list of Control Panel side navigation menus for a channel.
Authentication
- X-Auth-Token in header
Parameters
- store_hash in path - string
- Accept in header with default of application/json - stringrequiredThe MIME type of the response body.
- channel_id in path - integerrequiredThe ID of a channel.
example
curl --request GET \
--url 'https://api.bigcommerce.com/stores/[store_hash]/v3/channels/[channel_id]/channel-menus' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'X-Auth-Token: {{token}}'
Response
Body
object | application/json
dataobject
response
{
"data": {
"bigcommerce_protected_app_sections": [
"social",
"carousel",
"domains",
"currencies",
"notifications",
"storefront_settings"
],
"custom_app_sections": [
{
"title": "Overview",
"query_path": "overview"
},
{
"title": "Products",
"query_path": "products"
},
{
"title": "Campaigns",
"query_path": "campaigns"
},
{
"title": "Settings",
"query_path": "settings"
}
]
},
"meta": {}
}
Create Channel Menus
POST https://api.bigcommerce.com/stores/{store_hash}/v3/channels/{channel_id}/channel-menusRequest
Creates or replaces list of control panel side navigation menus for a channel.
Authentication
- X-Auth-Token in header
Parameters
- store_hash in path - string
- Accept in header with default of application/json - stringrequiredThe MIME type of the response body.
- channel_id in path - integerrequiredThe ID of a channel.
- Content-Type in header with default of application/json - stringrequiredThe MIME type of the request body.
Body
object | application/json
bigcommerce_protected_app_sectionsarray[string]
List of channel-specific control panel menu navigation items and corresponding settings pages an app developer can choose to enable for the subject channel. Protected settings override any settings set in those UI sections at the storewide level. Learn more in the Building Storefront Channels tutorial.Allowed: overview | storefront_settings | localization | carousel | script_manager | currencies | payments | checkout | domains | notifications | social | pages | data_solutions
custom_app_sectionsarray[object]
Create Channel Menus
{
"bigcommerce_protected_app_sections": [
"social",
"carousel",
"domains",
"currencies",
"notifications",
"storefront_settings"
],
"custom_app_sections": [
{
"title": "Overview",
"query_path": "overview"
},
{
"title": "Products",
"query_path": "products"
},
{
"title": "Campaigns",
"query_path": "campaigns"
},
{
"title": "Settings",
"query_path": "settings"
}
]
}
Response
Body
object | application/json
dataobject
response
{
"data": {
"bigcommerce_protected_app_sections": [
"social",
"carousel",
"domains",
"currencies",
"notifications",
"storefront_settings"
],
"custom_app_sections": [
{
"title": "Overview",
"query_path": "overview"
},
{
"title": "Products",
"query_path": "products"
},
{
"title": "Campaigns",
"query_path": "campaigns"
},
{
"title": "Settings",
"query_path": "settings"
}
]
},
"meta": {}
}
Delete Channel Menus
DELETE https://api.bigcommerce.com/stores/{store_hash}/v3/channels/{channel_id}/channel-menusRequest
Deletes control panel side navigation menus for a channel.
Authentication
- X-Auth-Token in header
Parameters
- store_hash in path - string
- Accept in header with default of application/json - stringrequiredThe MIME type of the response body.
- channel_id in path - integerrequiredThe ID of a channel.
example
curl --request DELETE \
--url 'https://api.bigcommerce.com/stores/[store_hash]/v3/channels/[channel_id]/channel-menus' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'X-Auth-Token: {{token}}'
Response
Body
object | application/json
datainteger
example
{
"data": 0,
"meta": {}
}
Did you find what you were looking for?