> ## Documentation Index
> Fetch the complete documentation index at: https://www.octoparse.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Release 생성

> ready Build를 정식 버전으로 승격. 버전 번호는 이 시점에 확정.

**`POST`** `https://api-datahub.octoparse.com/v1/data-apps/{app_id}/releases`

인증: API 키 필요(`Authorization: Bearer <API Key>`). App 작성자만. 그 외 `404`.

지정 ready Build를 정식 버전으로 승격. **버전 번호는 여기서 확정**: 기본은 현재 최대 버전 patch +1. 더 높은 명시 버전 가능.

전제: Build 존재·ready. 스냅샷을 검증 파이프라인 재실행(Build 생존 중 사양 진화 가능). `expected_revision` 지정 시 워크스페이스 일치. 대상 버전 미존재. App 비권장 아님.

## 요청

### 경로 파라미터

<ParamField path="app_id" type="string" required>
  App 참조.
</ParamField>

### 요청 body

<ParamField body="build_id" type="string" required>
  게시할 Build id. ready 필수.
</ParamField>

<ParamField body="version" type="string">
  명시적 3세그먼트 버전. 생략 시 patch +1.
</ParamField>

<ParamField body="expected_revision" type="integer">
  기대하는 현재 드래프트 리비전. 불일치는 `409`.
</ParamField>

### 요청 예시

```bash theme={null}
curl -X POST \
  -H "Authorization: Bearer $OCTOPARSE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"build_id": "bld_a583f440a0ab", "version": "1.2.0"}' \
  "https://api-datahub.octoparse.com/v1/data-apps/carol/reviews-query/releases"
```

## 응답

### 200 성공

```json theme={null}
{
  "data": {
    "version": "1.2.0",
    "build_id": "bld_a583f440a0ab",
    "published_at": "2026-09-15T08:00:00+00:00",
    "latest": true
  }
}
```

페이로드는 `data`로 감쌉니다. 필드:

<ResponseField name="app_name" type="string" required>
  —
</ResponseField>

<ResponseField name="namespace" type="string">
  —
</ResponseField>

<ResponseField name="version" type="string" required>
  게시 버전 번호.
</ResponseField>

<ResponseField name="build_id" type="string" required>
  대응 Build.
</ResponseField>

<ResponseField name="published_at" type="string">
  게시 시각.
</ResponseField>

<ResponseField name="missing_secrets" type="string[]">
  —
</ResponseField>

### 오류

| HTTP | `code`              | `category`      | 설명                                              |
| ---- | ------------------- | --------------- | ----------------------------------------------- |
| 401  | `unauthorized`      | `forbidden`     | API 키 누락 또는 무효.                                 |
| 404  | `build-not-found`   | `not_found`     | Build 스냅샷 없음.                                   |
| 409  | `build-not-ready`   | `invalid_input` | Build가 아직 ready 아님(building 또는 failed)이라 게시 불가. |
| 422  | `invalid-manifest`  | `invalid_input` | 매니페스트 검증 실패. `issues[]`에 문제 목록.                 |
| 409  | `revision-conflict` | `invalid_input` | `expected_revision`이 현재 드래프트 리비전과 불일치 — 동시 편집.  |

오류 응답은 `{"error": {code, category, message, retryable}}`입니다. <a href="/docs/ko/datahub/api/reference/introduction#errors">오류</a> 참고.

## 클라이언트 라이브러리

Python / JavaScript SDK는 아직 이 엔드포인트를 감싸지 않습니다. REST를 직접 호출하세요.
