Menu Item API: /api/index.php/v1/menus/{app}/items Throws Error When Creating Menu for Items with Request Parameters
Error:
stdClass Object (
[errors] => Array (
[0] => stdClass Object (
[title] => Field required: COM_CONTENT_FIELD_SELECT_ARTICLE_LABEL
)
)
)
This issue was not present in Joomla 4.4.8 and began occurring in 4.4.9. It specifically affects menu items with configuration parameters such as: index.php?option=com_content&view=article&id=123
Parameters Tried to Resolve the Issue:
Using select_article:
"select_article": 123
Using request:
"request": {
"option": "com_content",
"id": "123"
}
Using query:
"query": {
"option": "com_content",
"view": "article",
"id": "123"
}
Labels |
Added:
No Code Attached Yet
a11y
|
Labels |
Removed:
a11y
|
Labels |
Added:
Webservices
|
Labels |
Added:
Information Required
|
Sorry, but the a11y label seem wrong here. Your problem is not related to users with disabilities?
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2025-01-29 06:15:14 |
Closed_By | ⇒ | avinashpatwari |
Thank you, @alikon , for adding the relevant labels.
I am making a cURL POST request to create menu links for the "Articles > Select Article" page.
Until Joomla 4.4.8, the additional menu array parameter:
"request" => array("id" => 2)
was not mandatory.
I was able to resolve the issue by including it in the menu item data.
can you add more information like verbs GET, POST etc and the payload