# Enable Eviction

> This endpoint enables eviction for given database.

## Endpoint

`POST https://api.upstash.com/v2/redis/enable-eviction/{id}`

## Parameters

- `id` (path, string, required): The ID of the database to enable eviction

## Responses

### 200 - Eviction enabled successfully


## cURL

```bash
curl --request POST \
  --url https://api.upstash.com/v2/redis/enable-eviction/{id} \
  --header 'Authorization: Bearer <token>'
```
