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)
新过期角色的描述
| 名称 | 描述 | 模式 |
|---|---|---|
|
角色 | 应该应用到权限的角色 | 字符串 |
响应
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 | 机构的名称 | 字符串 |
响应
2.13.3. createOrganizationPrototypePermission
创建新权限。
POST /api/v1/organization/{orgname}/prototypes
授权: oauth2_implicit (org:admin)
路径参数
| 类型 | Name | 描述 | 模式 |
|---|---|---|---|
| path |
OrgName | 机构的名称 | 字符串 |
请求正文模式(application/json)
新站的描述
| 名称 | 描述 | 模式 |
|---|---|---|
|
角色 | 应该应用到委托的角色 | 字符串 |
|
activating_user | 规则应应用的存储库创建用户 | 对象 |
|
委派 | 有关该规则授予访问权限的用户或团队的信息 | 对象 |
响应
2.13.4. getOrganizationPrototypePermissions
列出此机构的现有站。
GET /api/v1/organization/{orgname}/prototypes
授权: oauth2_implicit (org:admin)
路径参数
| 类型 | Name | 描述 | 模式 |
|---|---|---|---|
| path |
OrgName | 机构的名称 | 字符串 |