您可以上传文件,然后设置头像网址。
有关如何设置头像网址的信息,请参阅编辑项目文档。
https://docs.gitlab.com/ce/api/projects.html#edit-project
...
"avatar_url": "http://example.com/uploads/project/avatar/4/uploads/avatar.png"
...
在编辑或列表请求的响应中确实存在参数 avatar_url ,但它不包含在有效的编辑参数中。
允许的参数(参考文档)如下:
- ID
- 名称
- 路径
- default_branch
- 描述
- issues_enabled
- merge_requests_enabled
- builds_enabled
- wiki_enabled
- snippets_enabled
- container_registry_enabled
- shared_runners_enabled
- 公共
- visibility_level
- import_url- id
- 名称
- 路径
- default_branch
- 描述
- issues_enabled
- merge_requests_enabled
- builds_enabled
- wiki_enabled
- snippets_enabled
- container_registry_enabled
- shared_runners_enabled
- 公共
- visibility_level
- import_url
- public_builds
- only_allow_merge_if_build_succeeds成功
- only_allow_merge_if_all_discussions_are_resolved merged
- lfs_enabled
- request_access_enabled
- public_builds
- only_allow_merge_if_build_succeeds成功
- only_allow_merge_if_all_discussions_are_resolved merged
- lfs_enabled
- request_access_enabled
我找不到设置 avatar_url 的可能性。