No Code Attached Yet bug ?
avatar tsesl
tsesl
5 Jul 2023

Steps to reproduce the issue

curl --location '{{base_url}}api/index.php/v1/users/groups' --header 'Content-Type: application/json' --data '{"title": "Group Title", "parent_id": 1}'

Expected result

Response Code: 200 OK
Body: { "links": { "self": "{{base_url}}api/index.php/v1/users/groups" }, "data": { "type": "groups", "id": "...", "attributes": { "id": ..., "parent_id": 1, "lft": ..., "rgt": ..., "title": "Group Title" } } }

Actual result

Response Code: 400 Bad Request
Body: { "errors": [ { "title": "Field required: id" } ] }

System information (as much as possible)

Joomla 4.3.2

Additional comments

The "id" field attribute Required is "true". Thats causes the validation of the model to fail on save.

avatar tsesl tsesl - open - 5 Jul 2023
avatar joomla-cms-bot joomla-cms-bot - change - 5 Jul 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 5 Jul 2023
avatar richard67 richard67 - change - 5 Jul 2023
Labels Added: bug ?
avatar richard67 richard67 - labeled - 5 Jul 2023
avatar richard67 richard67 - labeled - 5 Jul 2023
avatar richard67 richard67 - change - 11 Jul 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-07-11 12:11:32
Closed_By richard67
avatar richard67 richard67 - close - 11 Jul 2023
avatar richard67
richard67 - comment - 11 Jul 2023

Closing as having a pull request. Please test #41141 . Thanks in advance.

Add a Comment

Login with GitHub to post a comment