joomla-cms
joomla-cms copied to clipboard
[4][webservice] user patch
Pull Request for Issue #38277 .
Summary of Changes
skip group check when webservices
Testing Instructions
send a PATCH to the {{base_url}}/{{base_path}}/users/{{user_id}}
Contents:
{"email":"[email protected]", "some_custom_field": "0"}
Actual result BEFORE applying this Pull Request
Error : "Save failed with the following error: You can't save a user account without selecting at least one user group."
Expected result AFTER applying this Pull Request
for the user specified by the {user_id}, the mail and custom field get updated to the values sent
Documentation Changes Required
?
your testing instructions are unclear, please give step by step
I have tested this item :white_check_mark: successfully on 05d292580be4b21a29b72266123a1b816bb4b21c
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38283.
This pull request has been automatically rebased to 4.4-dev.
Tried to test, but did'nt get the result:
My Test (User ID 51 exists): curl -d '{"email":"[email protected]", "some_custom_field": "0"}' -X PATCH http://localhost:8080/api/users/51 -H "Authorization: Bearer ..."
Response: {"errors":[{"title":"Resource not found","code":404}]}
@tomsrocket It looks like you don't use the correct url. In your case it should: http://localhost:8080/api/index.php/v1/users/51
no interest