2.13. prototype

管理添加到存储库的默认权限。

2.13.1. updateOrganizationPrototypePermission

更新现有权限 的角色。

PUT /api/v1/organization/{orgname}/prototypes/{prototypeid}

授权: oauth2_implicit (org:admin)

路径参数
类型Name描述模式

path


必需

the the the the the the the the the the the the the the the the the the

字符串

path

OrgName
必需

机构的名称

字符串

请求正文模式(application/json)

新过期角色的描述

名称描述模式

角色
可选

应该应用到权限的角色

字符串

响应
HTTP 代码描述模式

200

成功调用

 

400

错误请求

ApiError

401

需要会话

ApiError

403

未授权访问

ApiError

404

未找到

ApiError

2.13.2. deleteOrganizationPrototypePermission

删除现有权限。

DELETE /api/v1/organization/{orgname}/prototypes/{prototypeid}

授权: oauth2_implicit (org:admin)

路径参数
类型Name描述模式

path


必需

the the the the the the the the the the the the the the the the the the

字符串

path

OrgName
必需

机构的名称

字符串

响应
HTTP 代码描述模式

204

已删除

 

400

错误请求

ApiError

401

需要会话

ApiError

403

未授权访问

ApiError

404

未找到

ApiError

2.13.3. createOrganizationPrototypePermission

创建新权限。

POST /api/v1/organization/{orgname}/prototypes

授权: oauth2_implicit (org:admin)

路径参数
类型Name描述模式

path

OrgName
必需

机构的名称

字符串

请求正文模式(application/json)

新站的描述

名称描述模式

角色
可选

应该应用到委托的角色

字符串

activating_user
optional

规则应应用的存储库创建用户

对象

委派
可选

有关该规则授予访问权限的用户或团队的信息

对象

响应
HTTP 代码描述模式

201

成功创建

 

400

错误请求

ApiError

401

需要会话

ApiError

403

未授权访问

ApiError

404

未找到

ApiError

2.13.4. getOrganizationPrototypePermissions

列出此机构的现有站。

GET /api/v1/organization/{orgname}/prototypes

授权: oauth2_implicit (org:admin)

路径参数
类型Name描述模式

path

OrgName
必需

机构的名称

字符串

响应
HTTP 代码描述模式

200

成功调用

 

400

错误请求

ApiError

401

需要会话

ApiError

403

未授权访问

ApiError

404

未找到

ApiError