diff options
Diffstat (limited to 'doc/api/topics.md')
-rw-r--r-- | doc/api/topics.md | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/doc/api/topics.md b/doc/api/topics.md index 5e9e1b8fc12..538b9af9374 100644 --- a/doc/api/topics.md +++ b/doc/api/topics.md @@ -161,7 +161,7 @@ curl --request PUT \ --data "name=topic1" \ --header "PRIVATE-TOKEN: <your_access_token>" \ "https://gitlab.example.com/api/v4/topics/1" - +``` Example response: @@ -188,3 +188,18 @@ curl --request PUT \ "https://gitlab.example.com/api/v4/topics/1" \ --form "avatar=@/tmp/example.png" ``` + +### Remove a topic avatar + +> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/348148) in GitLab 14.6. + +To remove a topic avatar, use a blank value for the `avatar` attribute. + +Example request: + +```shell +curl --request PUT \ + --data "avatar=" \ + --header "PRIVATE-TOKEN: <your_access_token>" \ + "https://gitlab.example.com/api/v4/topics/1" +``` |