GitLab API:上传项目头像 [英] GitLab API: upload projects avatar

查看:97
本文介绍了GitLab API:上传项目头像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以上传特定项目的头像?

Is it possible to upload an avatar for a specific project?

文档中找不到与此相关的任何内容.. >

I could not find anything about this in the documentation.

推荐答案

您可以上传文件,然后设置头像网址.

You can upload a file then set the avatar url.

有关如何设置头像URL的信息,请参阅edit-project文档.

See edit-project docs for how to set the avatar URL.

https://docs.gitlab.com/ce/api /projects.html#edit-project

...
"avatar_url": "http://example.com/uploads/project/avatar/4/uploads/avatar.png"
... 

这篇关于GitLab API:上传项目头像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆