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

# Undeprecate an app

> Clear the deprecation mark so status returns to its prior track.

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

Authentication: API key required (`Authorization: Bearer <API Key>`). App author only; others get `404`.

Undeprecate (idempotent): clear the deprecation mark. Derived status returns to its prior track — published when releases exist (market search restored per visibility scope), otherwise draft.

Isomorphic to version-level yank/unyank: deprecation is an identity-level mark, not a physical state. Restore does not touch visibility scope or the maintenance switch; operational toggles the author changed while deprecated are not silently reverted.

## Request

### Path parameters

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

### Example request

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

## Response

### 200 success

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

The payload is wrapped in `data`. Fields:

<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>
  Derived status after restore.
</ResponseField>

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

### Errors

| HTTP | `code`         | `category`  | Description                 |
| ---- | -------------- | ----------- | --------------------------- |
| 401  | `unauthorized` | `forbidden` | Missing or invalid API key. |

Error responses use `{"error": {code, category, message, retryable}}`. See <a href="/docs/en/datahub/api/reference/introduction#errors">Errors</a>.

## Client libraries

The Python and JavaScript SDKs do not wrap this endpoint yet. Call REST directly.
