更新仓库的权限模式
PUT/api/v5/repos/:owner/:repo/transition
Request
Path Parameters
owner stringrequired
仓库所属空间地址(组织或个人的地址path)
repo stringrequired
仓库路径(path)
Query Parameters
access_token stringrequired
用户授权码
- application/json
Body
modeintegerrequired
成员权限管理模式: 1 (继承模式),2 (是独立模式) 不接受设置混合模式
Responses
- 200
成功响应
Response Headers
- application/json
- Schema
- Example (auto)
- 1
Schema
msgstring
codeinteger
{
"msg": "string",
"code": 0
}
成功示例
{
"msg": "success",
"code": 1
}