---
title: "Migrate All Databases"
method: POST
path: "/databases/all/migrate"
tags: ["Database"]
---

# Migrate All Databases

`POST /databases/all/migrate`

Migrate all database schemas to the given target version. If a target version is not provided, all databases will be migrated to the latest version.

## Query parameters

- `target_version` string, nullable

## Response `200`

All databases migrated successfully

- unknown

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `422` — Validation Error
- `500` — Failed to migrate databases

---

[API](https://skmtc.net/agno/apis/agno-api-reference.md) · [All operations](https://skmtc.net/agno/apis/agno-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/agno/agno-api-reference/revisions/5f6149d395d0/schema)
