- 概述
- 鉴权
- 全局
- 个人
- 组织
- 安全
- 通用
- 产品管理 Product
- 项目管理 Project
- 项目
- Scrum
- Kanban
- 瀑布
- 工作项
- 发布
- 项目配置中心
- 项目配置
- 工作项配置
- 创建一个工作项标签
- 部分更新一个工作项标签
- 获取全部工作项标签列表
- 删除一个工作项标签
- 创建一个工作项类型
- 部分更新一个工作项类型
- 获取全部工作项类型列表
- 删除一个工作项类型
- 创建一个工作项状态
- 部分更新一个工作项状态
- 获取全部工作项状态列表
- 向状态方案中添加一个工作项状态
- 获取状态方案中的工作项状态列表
- 在状态方案中移除一个工作项状态
- 向状态方案中添加一个工作项状态流转
- 获取状态方案中的工作项状态流转列表
- 在状态方案中移除一个工作项状态流转
- 创建一个工作项属性
- 部分更新一个工作项属性
- - 获取一个工作项属性
- 获取全部工作项属性列表
- 获取工作项属性方案列表
- 向属性方案中添加一个工作项属性
- 获取属性方案中的工作项属性列表
- 在属性方案中移除一个工作项属性
- 测试管理 Testhub
- 知识管理 Wiki
- DevOps 数据集成
- 代码
- 托管平台
- 托管平台用户
- 代码仓库
- 代码分支
- 提交
- 提交引用
- 拉取请求
- 代码评审
- 构建
- 交付
全量更新一个代码仓库
PUT
https://open.pingcode.com/v1/scm/products/{scm_product_id}/repositories/{scm_product_repository_id}
最后修改时间:2024-01-22 09:12:22
责任人:未设置
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Path 参数
scm_product_id
string
必需
示例值:
{{scm_product_id}}
scm_product_repository_id
string
必需
示例值:
{{scm_product_repository_id}}
Body 参数application/json
name
string
必需
full_name
string
必需
description
string
必需
is_fork
boolean
必需
is_private
boolean
必需
owner_name
string
必需
html_url
string
必需
branches_url
string
必需
commits_url
string
必需
compare_url
string
必需
pulls_url
string
必需
示例
{
"name": "ngx-planet",
"full_name": "worktile/ngx-planet",
"description": "A powerful, reliable, fully-featured and production ready Micro Frontend library for Angular",
"is_fork": false,
"is_private": false,
"owner_name": "terry",
"html_url": "https://github.com/worktile/ngx-planet",
"branches_url": "https://github.com/worktile/ngx-planet/tree/{branch}",
"commits_url": "https://github.com/worktile/ngx-planet/commit/{sha}",
"compare_url": "https://github.com/worktile/ngx-planet/compare/{base}...{head}",
"pulls_url": "https://github.com/worktile/ngx-planet/pull/{number}"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request PUT 'https://open.pingcode.com/v1/scm/products/{{scm_product_id}}/repositories/{{scm_product_repository_id}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "ngx-planet",
"full_name": "worktile/ngx-planet",
"description": "A powerful, reliable, fully-featured and production ready Micro Frontend library for Angular",
"is_fork": false,
"is_private": false,
"owner_name": "terry",
"html_url": "https://github.com/worktile/ngx-planet",
"branches_url": "https://github.com/worktile/ngx-planet/tree/{branch}",
"commits_url": "https://github.com/worktile/ngx-planet/commit/{sha}",
"compare_url": "https://github.com/worktile/ngx-planet/compare/{base}...{head}",
"pulls_url": "https://github.com/worktile/ngx-planet/pull/{number}"
}'
返回响应
🟢200成功
application/json
Body
id
string
必需
url
string
必需
product
object
必需
id
string
必需
url
string
必需
name
string
必需
type
string
必需
name
string
必需
full_name
string
必需
created_at
integer
必需
owner
object
必需
id
string
必需
url
string
必需
name
string
必需
is_fork
boolean
必需
is_private
boolean
必需
description
string
必需
html_url
string
必需
branches_url
string
必需
commits_url
string
必需
compare_url
string
必需
pulls_url
string
必需
示例
{
"id": "564587fe700d43b81b080766",
"url": "https://rest_api_root/v1/scm/products/564587fe700d43b81b080765/repositories/564587fe700d43b81b080766",
"product": {
"id": "564587fe700d43b81b080765",
"url": "https://rest_api_root/v1/scm/products/564587fe700d43b81b080765",
"name": "Github",
"type": "github"
},
"name": "ngx-planet",
"full_name": "worktile/ngx-planet",
"created_at": 1403018919,
"owner": {
"id": "5666aea91f99e33cb7c44964",
"url": "https://rest_api_root/v1/scm/products/564587fe700d43b81b080765/users/5666aea91f99e33cb7c44964",
"name": "terry"
},
"is_fork": false,
"is_private": false,
"description": "A powerful, reliable, fully-featured and production ready Micro Frontend library for Angular",
"html_url": "https://github.com/worktile/ngx-planet",
"branches_url": "https://github.com/worktile/ngx-planet/tree/{branch}",
"commits_url": "https://github.com/worktile/ngx-planet/commit/{sha}",
"compare_url": "https://github.com/worktile/ngx-planet/compare/{base}...{head}",
"pulls_url": "https://github.com/worktile/ngx-planet/pull/{number}"
}