diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-06-20 13:43:29 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-06-20 13:43:29 +0300 |
commit | 3b1af5cc7ed2666ff18b718ce5d30fa5a2756674 (patch) | |
tree | 3bc4a40e0ee51ec27eabf917c537033c0c5b14d4 /doc/user/profile/achievements.md | |
parent | 9bba14be3f2c211bf79e15769cd9b77bc73a13bc (diff) |
Add latest changes from gitlab-org/gitlab@16-1-stable-eev16.1.0-rc42
Diffstat (limited to 'doc/user/profile/achievements.md')
-rw-r--r-- | doc/user/profile/achievements.md | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/doc/user/profile/achievements.md b/doc/user/profile/achievements.md index 1313c714dd0..4e3248ceb10 100644 --- a/doc/user/profile/achievements.md +++ b/doc/user/profile/achievements.md @@ -202,6 +202,36 @@ mutation { } ``` +## Delete an awarded achievement + +If you awarded an achievement to a user by mistake, you can delete it. + +Prerequisites: + +- You must have the Owner role for the namespace. + +To delete an awarded achievement, call the [`userAchievementsDelete` GraphQL mutation](../../api/graphql/reference/index.md#mutationuserachievementsdelete). + +```graphql +mutation { + userAchievementsDelete(input: { + userAchievementId: "gid://gitlab/Achievements::UserAchievement/<user achievement id>" }) { + userAchievement { + id + achievement { + id + name + } + user { + id + username + } + } + errors + } +} +``` + ## Delete an achievement If you consider you no longer need an achievement, you can delete it. @@ -230,7 +260,7 @@ mutation { If you don't want to display achievements on your profile, you can opt out. To do this: -1. On the top bar, in the upper-right corner, select your avatar. +1. On the left sidebar, select your avatar. 1. Select **Edit profile**. 1. In the **Main settings** section, clear the **Display achievements on your profile** checkbox. 1. Select **Update profile settings**. |