diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/security/email_verification.md | 2 | ||||
-rw-r--r-- | doc/user/profile/achievements.md | 30 |
2 files changed, 31 insertions, 1 deletions
diff --git a/doc/security/email_verification.md b/doc/security/email_verification.md index 6f3920d57c8..7a2ad6d2f30 100644 --- a/doc/security/email_verification.md +++ b/doc/security/email_verification.md @@ -43,4 +43,4 @@ reset your password. ## Related topics -- [Locked and blocked account support](https://about.gitlab.com/handbook/support/workflows/reinstating-blocked-accounts.html). +- [Locked and blocked account support](https://about.gitlab.com/handbook/support/workflows/reinstating-blocked-accounts.html) diff --git a/doc/user/profile/achievements.md b/doc/user/profile/achievements.md index 96940eec766..fcbbbe65639 100644 --- a/doc/user/profile/achievements.md +++ b/doc/user/profile/achievements.md @@ -108,6 +108,36 @@ mutation achievementsCreate($file: Upload!) { } ``` +## Update an achievement + +You can change the name, description, and avatar of an achievement at any time. + +Prerequisites: + +- You must have the Maintainer or Owner role for the namespace. + +To update an achievement, call the [`achievementsUpdate` GraphQL mutation](../../api/graphql/reference/index.md#mutationachievementsupdate). + +```graphql +mutation achievementsUpdate($file: Upload!) { + achievementsUpdate( + input: { + achievementId: "gid://gitlab/Achievements::Achievement/<achievement id>", + name: "<new name>", + description: "<new description>", + avatar: $file} + ) { + errors + achievement { + id + name + description + avatarUrl + } + } +} +``` + ## Award an achievement You can award an achievement to a user to recognize their contributions. |