# Teams

## 团队下新增所有的项目
团队下新增所有的项目

> 示例:

```shell
curl -X POST \
http://localhost:3000/api/organizations/ceshi_org/teams/28/team_projects/create_all
```

```javascript
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示例:

```json
{
    "status": 0,
    "message": "success"
}
```
<aside class="success">
  Success Data.
</aside>


## 团队下删除所有的项目
团队下删除所有的项目

> 示例:

```shell
curl -X DELETE \
http://localhost:3000/api/organizations/ceshi_org/teams/28/team_projects/destroy_all
```

```javascript
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示例:

```json
{
    "status": 0,
    "message": "success"
}
```
<aside class="success">
  Success Data.
</aside>