diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-03 12:10:48 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-03 12:10:48 +0300 |
commit | f6a4346585dcc6cc564cb4974a0ea49d2ac0531d (patch) | |
tree | 9e9109c2442dbac93c7a38d60c093b56be9e0fa4 /doc | |
parent | bdfa808bfa4983d67a1ff54e4a3b7070be4d13eb (diff) |
Add latest changes from gitlab-org/gitlab@master
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. |