Change a user's email
Change the email address for an email/password user by ID.
Path parameters
-
An Atlas Project/Group ID.
-
The ObjectID of your application. The App Services API Project and Application IDs section demonstrates how to find this value.
-
User Account ID
PATCH
/groups/{groupId}/apps/{appId}/users/{userId}/reset_email
curl \
--request PATCH 'https://services.cloud.mongodb.com/api/admin/v3.0/groups/{groupId}/apps/{appId}/users/{userId}/reset_email' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"email":"new_email@example.com"}'
Request example
{
"email": "new_email@example.com"
}