---
title: "Unarchive exposure SQL model"
method: POST
path: "/api/v2/experiments/exposure-sql-models/{exposure_sql_model_id}/unarchive"
tags: ["Experiments"]
---

# Unarchive exposure SQL model

`POST /api/v2/experiments/exposure-sql-models/{exposure_sql_model_id}/unarchive`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/experiments/exposure-sql-models/{exposure_sql_model_id}/unarchive`
- Auth: one of:
  - API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`
  - OAuth 2
    - Authorization code: `/oauth2/v1/authorize`
    - Token URL: `/oauth2/v1/token` scopes: `product_analytics_warehouse_model_write`
- TypeScript: <https://skmtc.dev/datadog/apis/datadog-api-v2-collection/docs/api/v2/experiments/exposure-sql-models/:exposure_sql_model_id/unarchive/post.ts> (a function with typed inputs; its response is checked against the schema)

Unarchive an exposure SQL model. Restores an archived model to the default list.

## Path parameters

- `exposure_sql_model_id` string, uuid, required: The UUID of the exposure SQL model.

## Response `204`

The exposure SQL model was unarchived. Unarchiving a model that is not archived succeeds and changes nothing.

## Other responses

- `400`: Malformed exposure SQL model ID (not a valid UUID).
- `401`: Missing or invalid authentication.
- `403`: Authenticated caller lacks the product_analytics_warehouse_model_write permission.
- `404`: No exposure SQL model with this ID exists for the organization.
- `429`: Too many requests

---

[API](https://skmtc.dev/datadog/apis/datadog-api-v2-collection.md) - [All operations](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/llms.txt) - [OpenAPI document](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/revisions/3f70db624329?raw)
