> For the complete documentation index, see [llms.txt](https://docs.unitlab.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.unitlab.ai/api-sdk-cli/ko/apis/projects-api.md).

# Projects API (프로젝트 API)

Unitlab Projects API로 HTTP 요청을 보내 프로젝트를 목록 조회, 조회, 생성, 수정, 삭제하는 방법과 각 라우트에 필요한 권한을 설명합니다.

| 메서드와 라우트                         | 하는 일                       | 권한                                |
| -------------------------------- | -------------------------- | --------------------------------- |
| `GET /api/sdk/projects/`         | 프로젝트 목록(단순 배열)             | 모든 키                              |
| `POST /api/sdk/projects/`        | 프로젝트 생성                    | 프로젝트 관리                           |
| `GET /api/sdk/projects/{id}/`    | 프로젝트 조회                    | 모든 키                              |
| `PATCH /api/sdk/projects/{id}/`  | `name` 또는 `description` 변경 | 프로젝트 관리                           |
| `DELETE /api/sdk/projects/{id}/` | 프로젝트 삭제                    | 프로젝트 관리 + Owner 또는 프로젝트 생성자가 만든 키 |

## 생성 <a href="#create" id="create"></a>

```bash
curl -s -X POST https://api.unitlab.ai/api/sdk/projects/ \
  -H "Authorization: Api-Key $UNITLAB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Pallet inspection", "ontology_hash": "ONTOLOGY_ID"}'
```

```json
{
  "pk": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
  "name": "Pallet inspection",
  "description": "",
  "created": "2026-11-22T09:14:03Z",
  "creator": "...",
  "number_of_data": 0,
  "ontology_hash": "ONTOLOGY_ID"
}
```

`ontology_hash`는 선택 사항입니다. `pk`는 프로젝트 ID이고, `number_of_data`는 항목 수입니다.

## 수정과 삭제 <a href="#update-and-delete" id="update-and-delete"></a>

```bash
curl -s -X PATCH https://api.unitlab.ai/api/sdk/projects/$PROJECT_ID/ \
  -H "Authorization: Api-Key $UNITLAB_API_KEY" -H "Content-Type: application/json" \
  -d '{"description": "Second site"}'

curl -s -X DELETE https://api.unitlab.ai/api/sdk/projects/$PROJECT_ID/ \
  -H "Authorization: Api-Key $UNITLAB_API_KEY"
```

삭제하면 프로젝트가 삭제됨 상태로 바뀌고 정리 작업이 예약됩니다.

## 관련 문서 <a href="#related" id="related"></a>

[프로젝트 데이터와 Batch Queue API](https://docs.unitlab.ai/api-sdk-cli/ko/apis/project-data-and-batch-queues-api.md) · [SDK: 프로젝트](https://docs.unitlab.ai/api-sdk-cli/ko/sdks/projects.md)
