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

# App を非推奨

> 保守終了としてマーク: 市場検索から外れ、新規版を拒否。可逆。

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

認証：APIキー必須（`Authorization: Bearer <API Key>`）。App 作者のみ。他者は `404`。

識別子レベルの非推奨（冪等・可逆）：保守終了、移行推奨、新規 Release 拒否。

非推奨 App は市場検索から外れるが、詳細は可視範囲で読め、実行も可。供給停止はメンテナンススイッチによる作者の明示判断で、非推奨の暗黙副作用ではない。進行中連携を突然切らない。Release 0 件でも非推奨可。誤りなら undeprecate で戻す。

## リクエスト

### パスパラメータ

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

### リクエスト例

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

## レスポンス

### 200 成功

```json theme={null}
{
  "data": {
    "app_name": "string",
    "namespace": "string",
    "version": "",
    "status": "string",
    "missing_secrets": [
      "string"
    ]
  }
}
```

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

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

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

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

<ResponseField name="status" type="string" required>
  非推奨後の導出ステータス。
</ResponseField>

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

### エラー

| HTTP | `code`         | `category`  | Description    |
| ---- | -------------- | ----------- | -------------- |
| 401  | `unauthorized` | `forbidden` | API キー欠落または無効。 |

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

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

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