diff options
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**. |