menus/{app}/items
POST {{base_url}}/{{base_path}}/menus/:app/items
Generated from a curl request:
curl -X POST '{{base
url}}/{{base
path}}/menus/{{app}}/items' -H 'X-Joomla-Token: {{auth
apikey}}' -H 'Content-Type: application/json' -d '{
access
:
1
,
alias
:
,"associations":{"en-GB":
,
fr-FR
:"
},
browserNav
:
0
,
component
id
:
20
,
home
:
0
,
language
:
*
,
link
:
index.php?option=com
content&view=form&layout=edit
,
menutype
:
mainmenu
,
note
:
,
params
:{
cancel
redirect
menuitem
:
,
catid
:
,
custom
cancel
redirect
:
0
,
enable
category
:
0
,
menu-anchor
css
:
,
menu-anchor
title
:
,
menu-meta
description
:
,
menu-meta
keywords
:
,
menu
image
:
,
menu
image
css
:
,
menu
show
:
1
,
menu
text
:
1
,
page
heading
:
,
page
title
:
,
pageclass
sfx
:
,
redirect
menuitem
:
,
robots
:
,
show
page
heading
:
},
parent
id
:
1
,
publish
down
:
,
publish
up
:
,
published
:
1
,
template
style
id
:
0
,
title
:
title
,
toggle
modules
assigned
:
1
,
toggle
modules
published
:
1
,
type
:
component"}'
Request Body
{"access"=>"1", "alias"=>"", "associations"=>{"en-GB"=>"", "fr-FR"=>""}, "browserNav"=>"0", "component_id"=>"20", "home"=>"0", "language"=>"*", "link"=>"index.php?option=com_content&view=form&layout=edit", "menutype"=>"mainmenu", "note"=>"", "params"=>{"cancel_redirect_menuitem"=>"", "catid"=>"", "custom_cancel_redirect"=>"0", "enable_category"=>"0", "menu-anchor_css"=>"", "menu-anchor_title"=>"", "menu-meta_description"=>"", "menu-meta_keywords"=>"", "menu_image"=>"", "menu_image_css"=>"", "menu_show"=>"1", "menu_text"=>"1", "page_heading"=>"", "page_title"=>"", "pageclass_sfx"=>"", "redirect_menuitem"=>"", "robots"=>"", "show_page_heading"=>""}, "parent_id"=>"1", "publish_down"=>"", "publish_up"=>"", "published"=>"1", "template_style_id"=>"0", "title"=>"title", "toggle_modules_assigned"=>"1", "toggle_modules_published"=>"1", "type"=>"component"}
HEADERS
| Key | Datatype | Required | Description |
| Content-Type
| string | | |
RESPONSES
status: ``