forgeplus/app/docs/slate/source/includes/_teams.md

1.6 KiB

Teams

团队下新增所有的项目

团队下新增所有的项目

示例:

curl -X POST \
http://localhost:3000/api/organizations/ceshi_org/teams/28/team_projects/create_all
await octokit.request('POST /api/organizations/ceshi_org/teams/28/team_projects/create_all.json')

HTTP 请求

POST /api/organizations/:organization/teams/:id/team_projects/create_all.json

请求参数:

参数 必选 默认 类型 字段说明
organization string 组织标识
id integer 团队 ID

返回字段说明:

返回的JSON示例:

{
    "status": 0,
    "message": "success"
}

团队下删除所有的项目

团队下删除所有的项目

示例:

curl -X DELETE \
http://localhost:3000/api/organizations/ceshi_org/teams/28/team_projects/destroy_all
await octokit.request('DELETE /api/organizations/ceshi_org/teams/28/team_projects/destroy_all.json')

HTTP 请求

DELETE /api/organizations/:organization/teams/:id/team_projects/destroy_all.json

请求参数:

参数 必选 默认 类型 字段说明
organization string 组织标识
id integer 团队 ID

返回字段说明:

返回的JSON示例:

{
    "status": 0,
    "message": "success"
}