---
title: "POST /dbaas-postgres/{service}/upgrade-check"
method: POST
path: "/dbaas-postgres/{service}/upgrade-check"
tags: ["dbaas"]
---

# POST /dbaas-postgres/{service}/upgrade-check

`POST /dbaas-postgres/{service}/upgrade-check`

## Request

- Base URL: `https://api-ch-gva-2.exoscale.com/v2`
- URL: `https://api-ch-gva-2.exoscale.com/v2/dbaas-postgres/{service}/upgrade-check`
- Auth: none declared
- TypeScript: <https://skmtc.dev/exoscale/apis/exoscale-api/docs/dbaas-postgres/:service/upgrade-check/post.ts> (a function with typed inputs; its response is checked against the schema)

Check whether you can upgrade Postgres service to a newer version

## Path parameters

- `service` string, required

## Request body

- object
  - `target-version` '14' | '17' | '15' | '18' | '13' | '16', required

## Response `200`

200

- DbaasTask
  - `id` string, uuid
  - `create-time` string, date-time
  - `result` string
  - `result-codes` object[]
    - `code` string
    - `dbname` string
  - `success` boolean
  - `task-type` string

## Changes

- **2025-11-14** `352cae63dff6`: 1 info
  - added the new `18` enum value to the request property `target-version`
- **2025-01-18** `cf1e7ba7143f`: 1 breaking, 1 info
  - removed the enum value `12` of the request property `target-version`
  - added the new `17` enum value to the request property `target-version`
- **2024-05-22** `d1903c399d90`: 1 breaking, 1 info
  - removed the enum value `11` of the request property `target-version`
  - added the new `16` enum value to the request property `target-version`
- **2023-06-06** `cf7b08181585`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/exoscale/apis/exoscale-api/changes/dbaas-postgres/:service/upgrade-check/post.md)

---

[API](https://skmtc.dev/exoscale/apis/exoscale-api.md) - [All operations](https://skmtc.dev/exoscale/apis/exoscale-api/llms.txt) - [OpenAPI document](https://skmtc.dev/exoscale/apis/exoscale-api/revisions/63da6f74c845?raw)
