> ## 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.

# パッケージ検証

> .dataapp zip を検証のみアップロード。書き込みなし。契約パスが後継。

<Warning>
  **非推奨。** 契約パスが `.dataapp` パッケージフローを置き換え: 契約フォルダ組み立てで自己検査してから提出。新規はそちらを。
</Warning>

**`POST`** `https://api-datahub.octoparse.com/v1/data-apps/package`

認証：APIキー必須（`Authorization: Bearer <API Key>`）。

生 zip を `.dataapp` パッケージとしてアップロード → 展開 → 同一検証パイプライン。永続化なし。検証のみで展開ファイルをエコーバック: **合格後もワンショット公開エンドポイントを呼んで Release を作る必要あり**。

## リクエスト

### リクエスト例

```bash theme={null}
curl -X POST \
  -H "Authorization: Bearer $OCTOPARSE_API_KEY" \
  "https://api-datahub.octoparse.com/v1/data-apps/package"
```

## レスポンス

### 200 成功

```json theme={null}
{
  "data": {
    "valid": false,
    "errors": [
      {
        "path": "string",
        "message": "string"
      }
    ],
    "card": {},
    "manifest": "",
    "files": {}
  }
}
```

ペイロードは `data` に包まれます。フィールド:

<ResponseField name="valid" type="boolean" required>
  検証が通ったか。
</ResponseField>

<ResponseField name="errors" type="object[]">
  Issue list.

  <Expandable title="fields">
    <ResponseField name="path" type="string" required>
      —
    </ResponseField>

    <ResponseField name="message" type="string" required>
      —
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="card" type="object">
  Preview card.
</ResponseField>

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

<ResponseField name="files" type="object">
  展開後のファイル名一覧。
</ResponseField>

### エラー

| HTTP | `code`              | `category`      | Description                  |
| ---- | ------------------- | --------------- | ---------------------------- |
| 401  | `unauthorized`      | `forbidden`     | API キー欠落または無効。               |
| 422  | `invalid-manifest`  | `invalid_input` | マニフェスト検証失敗。`issues[]` に問題一覧。 |
| 413  | `payload-too-large` | `invalid_input` | リクエスト body がサイズ上限超過。         |

エラー応答は `{"error": {code, category, message, retryable}}` です。<a href="/docs/jp/datahub/api/reference/introduction#errors">エラー</a> を参照。

## クライアントライブラリ

Python / JavaScript SDK はまだこのエンドポイントをラップしていません。REST を直接呼び出してください。
