Purpose: Edit CommCare(mobile-worker) user.
URL: https://www.commcarehq.org/a/[domain]/api/[version]/user/[id]
Method: PUT
Input Parameters:
...
Code Block | ||||
---|---|---|---|---|
| ||||
{ "first_name": "John", "last_name": "Doe", "email": "jdoe@example.org", "language": "en", "phone_numbers": [ "+50253311399", "50253314588" ], "groups": [ "9a0accdba29e01a61ea099394737c4fb", "b4ccdba29e01a61ea099394737c4fbf7" ], "user_data": { "chw_id": "13/43/DFA" } } |
Other Information:
- You must specify in the request header that the Content-Type is application/json