No Code Attached Yet Information Required Webservices
avatar avinashpatwari
avinashpatwari
28 Jan 2025

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:

  1. Using select_article:
    "select_article": 123

  2. Using request:
    "request": {
    "option": "com_content",
    "id": "123"
    }

  3. Using query:
    "query": {
    "option": "com_content",
    "view": "article",
    "id": "123"
    }

avatar avinashpatwari avinashpatwari - open - 28 Jan 2025
avatar joomla-cms-bot joomla-cms-bot - change - 28 Jan 2025
Labels Added: No Code Attached Yet a11y
avatar joomla-cms-bot joomla-cms-bot - labeled - 28 Jan 2025
avatar richard67 richard67 - change - 28 Jan 2025
Labels Removed: a11y
avatar richard67 richard67 - unlabeled - 28 Jan 2025
avatar alikon alikon - change - 28 Jan 2025
Labels Added: Webservices
avatar alikon alikon - labeled - 28 Jan 2025
avatar alikon
alikon - comment - 28 Jan 2025

can you add more information like verbs GET, POST etc and the payload

avatar alikon alikon - change - 28 Jan 2025
Labels Added: Information Required
avatar alikon alikon - labeled - 28 Jan 2025
avatar chmst
chmst - comment - 28 Jan 2025

Sorry, but the a11y label seem wrong here. Your problem is not related to users with disabilities?

avatar avinashpatwari avinashpatwari - change - 29 Jan 2025
Status New Closed
Closed_Date 0000-00-00 00:00:00 2025-01-29 06:15:14
Closed_By avinashpatwari
avatar avinashpatwari avinashpatwari - close - 29 Jan 2025
avatar avinashpatwari
avinashpatwari - comment - 29 Jan 2025

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.

Add a Comment

Login with GitHub to post a comment