---
search:
  tags:
    - database-services
    - POST
seo:
  description: >-
    Restarts PostgreSQL so that it loads the… Reference for the POST
    /api/v1/database-services/{id}/extensions/restart endpoint in the
    TimescaleDB Enterprise API.
sidebar:
  label: Restart for new extensions
  badge: POST
title: Restart for new extensions
type: openapi-operation
---
Restarts PostgreSQL so that it loads the preload libraries that a deploy wrote. HA: the replicas one at a time, then one switchover to a restarted replica, then the old leader. Standard: one restart, a short outage. The Patroni process restarts too, so the restart also applies a pending restart of the Standard service (restart_pending of a server, TSE-1627). The workflow is restart_extensions. After it, the console creates the extensions that waited for the restart (create_extensions).

`POST /api/v1/database-services/{id}/extensions/restart`

**Responses**

- `202` — Accepted
- `default` — Error

Response example, 202:

```json
{
  "apply_pending": {
    "caps_stale": true,
    "guard_missing": true,
    "licensing_setup": true,
    "restart_marker": true
  },
  "backupConfigOutOfSync": true,
  "backupNeedsAttention": true,
  "backupUnprotected": true,
  "created_at": "string",
  "data_dir": "string",
  "database_name": "string",
  "extension_versions": {
    "property1": "string",
    "property2": "string"
  },
  "extensions": [
    "string"
  ],
  "health": {
    "checked_at": "2019-08-24T14:15:22Z",
    "components": [
      {
        "key": "patroni",
        "message": "string",
        "name": "string",
        "status": "healthy"
      }
    ],
    "reason": "string",
    "since": "2019-08-24T14:15:22Z",
    "status": "healthy"
  },
  "id": "string",
  "license_enforced": true,
  "license_grant_missing": true,
  "livesync_target": true,
  "name": "string",
  "pack_release": "string",
  "pg_version": "string",
  "pg_version_minor": "string",
  "postgresql_exists": true,
  "redeploy_recommended": true,
  "status": "string",
  "timescaledb_version": "string",
  "topology": "single_node",
  "updates_available": true
}
```
