diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2024-01-19 09:08:56 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2024-01-19 09:08:56 +0300 |
commit | 3ca9052426b4646d28d3862f9c90f1c84910857d (patch) | |
tree | 9ca6c62823385caedf78010a1de43391f4a2c2b2 /doc/api | |
parent | 5d3fb47a057b7a2bfc03676d3fdeaa9138424c2f (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/api')
-rw-r--r-- | doc/api/users.md | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/doc/api/users.md b/doc/api/users.md index cd911196f74..2908f552a9d 100644 --- a/doc/api/users.md +++ b/doc/api/users.md @@ -1695,12 +1695,13 @@ Parameters: ## Delete email for current user -Deletes email owned by authenticated user. +Deletes the specified email address owned by the authenticated user. Cannot be used to delete a primary email address. -This returns a `204 No Content` status code if the operation was successfully -or `404` if the resource was not found. +If the deleted email address is used for any user emails, those user emails are sent to the primary email address instead. -This cannot delete a primary email address. +NOTE: +Because of [known issue](https://gitlab.com/gitlab-org/gitlab/-/issues/438600), group notifications are still sent to +the deleted email address. ```plaintext DELETE /user/emails/:email_id @@ -1712,6 +1713,11 @@ Parameters: |------------|---------|----------|-------------| | `email_id` | integer | yes | Email ID | +Returns: + +- `204 No Content` if the operation was successful. +- `404` if the resource was not found. + ## Delete email for given user **(FREE SELF)** Prerequisites: |