joomla-cms icon indicating copy to clipboard operation
joomla-cms copied to clipboard

[4][webservice] user patch

Open alikon opened this issue 2 years ago • 5 comments

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

?

alikon avatar Jul 16 '22 07:07 alikon

your testing instructions are unclear, please give step by step

N6REJ avatar Aug 02 '22 14:08 N6REJ

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.

heelc29 avatar Aug 26 '23 08:08 heelc29

This pull request has been automatically rebased to 4.4-dev.

HLeithner avatar Sep 30 '23 22:09 HLeithner

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 avatar Feb 24 '24 14:02 tomsrocket

@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

heelc29 avatar Feb 24 '24 15:02 heelc29

no interest

alikon avatar Apr 11 '24 19:04 alikon