---
search:
  tags:
    - database-services
    - POST
seo:
  description: >-
    Sets each override that waits for its… Reference for the POST
    /api/v1/database-services/{id}/settings/discard endpoint in the TimescaleDB
    Enterprise API.
  noindex: true
sidebar:
  label: Discard pending settings
  badge: POST
title: Discard pending settings
type: openapi-operation
---
Sets each override that waits for its apply back to its applied value, removes the overrides that no workflow applied, and sets the HBA rules back to the applied rules (ADR D7). A failed apply can leave new values in the DCS, so first the console writes the applied values of the PostgreSQL overrides back into the DCS; when Patroni does not answer, it answers 502 and discards nothing. It answers 409 when settings_version is old or while a workflow runs on the service. With nothing to discard, it changes nothing.

`POST /api/v1/database-services/{id}/settings/discard`

**Request body** (`application/json`, required)

- `settings_version` (integer<int64>, required) — The version that the user saw.

Request body example:

```json
{
  "settings_version": 0
}
```

**Responses**

- `200` — OK
- `default` — Error

Response example, 200:

```json
{
  "discarded": [
    "string"
  ],
  "hba": true,
  "settings_version": 0
}
```
