---
title: "Patch an existing entry in migration history"
method: PATCH
path: "/v1/projects/{ref}/database/migrations/{version}"
tags: ["Database"]
---

# Patch an existing entry in migration history

`PATCH /v1/projects/{ref}/database/migrations/{version}`

Only available to selected partner OAuth apps

## Path parameters

- `ref` string, required
- `version` string, required

## Request body

- V1PatchMigrationBody
  - `name` string
  - `rollback` string

## Response `200`

## Other responses

- `401` — Unauthorized
- `403` — Forbidden action
- `429` — Rate limit exceeded
- `500` — Failed to patch database migration

---

[API](https://skmtc.dev/supabase/apis/management-api.md) · [All operations](https://skmtc.dev/supabase/apis/management-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/supabase/management-api/revisions/a7cb39418064/schema)
