User Edit (Mobile Worker)
Purpose: Edit CommCare(mobile-worker) user.
Permissions Required: Edit Mobile Workers & Edit Access API's
Authentication: For more information, please review CommCare API Overview .
URL: https://www.commcarehq.org/a/[domain]/api/[version]/user/[id]/
Method: PUT
Input Parameters:
Name | Description | Example |
---|---|---|
first_name | First name of user | John |
last_name | Last name of user | Doe |
Email address of user | ||
phone_numbers | List of all phone numbers of the user | (see examples) This will replace existing phone numbers for user. |
groups | List of all group ids belonging to the user | (see examples) This will replace existing groups for the user. |
user_data | Any additional custom data associated with the user | (see examples) This will replace existing custom data for the user. Note that user data may include system data affecting various features, so it is advised to pull the user's current data and edit it, rather than completely overwriting user data. To get the user's current data, use the single user URL provided at https://dimagi.atlassian.net/wiki/x/MDHKfw. |
language | User language | en |