---
title: "Update status of a migration"
method: POST
path: "/api/v4/admin/migrations/{timestamp}/mark"
tags: ["migrations"]
---

# Update status of a migration

`POST /api/v4/admin/migrations/{timestamp}/mark`

## Request

- Base URL: `https://gitlab.com`
- URL: `https://gitlab.com/api/v4/admin/migrations/{timestamp}/mark`
- Auth: none declared

Updates the status of a migration to indicate a successful execution. This prevent them from being executed by the `db:migrate` tasks. Use this API to skip failing migrations after you determine they are safe to skip.

## Path parameters

- `timestamp` integer, required

## Request body

- PostApiV4AdminMigrationsTimestampMark: Update status of a migration
  - `database` 'main' | 'ci' | 'sec' | 'embedding' | 'geo': The name of the database

## Response `201`

201 Created

## Other responses

- `401`: 401 Unauthorized
- `403`: 403 Forbidden
- `404`: 404 Not found
- `422`: You can mark only pending migrations

---

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