Create branch
POST
/v3/projects/{id}/repository/branchesCreate branch
请求参数
Path 参数
id
string
必需
The ID of a project
Body 参数application/x-www-form-urlencoded
branch_name
string
必需
The name of the branch
ref
string
必需
Create branch from commit sha or existing branch
示例代码
返回响应
成功(201)
HTTP 状态码: 201
内容格式: JSONapplication/json
Create branch
数据结构
Create branch
name
string
可选
commit
string
可选
merged
string
可选
protected
string
可选
developers_can_push
string
可选
developers_can_merge
string
可选
示例
{
"name": "string",
"commit": "string",
"merged": "string",
"protected": "string",
"developers_can_push": "string",
"developers_can_merge": "string"
}
最后修改时间: 1 个月前