Mark the migration as successfully executed

POST /admin/migrations/{timestamp}/mark

Mark the migration as successfully executed

Path parameters

  • timestamp integer(int32) Required

    The migration version timestamp

application/json

Body

  • database string

    The name of the database

    Values are main, ci, embedding, main_clusterwide, or geo. Default value is main.

Responses

  • 201

    201 Created

  • 401

    401 Unauthorized

  • 403

    403 Forbidden

  • 404

    404 Not found

  • 422

    You can mark only pending migrations

POST /admin/migrations/{timestamp}/mark
curl \
 --request POST 'https://www.gitlab.com/api/v4/admin/migrations/{timestamp}/mark' \
 --header "Private-Token: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"database":"main"}'
Request examples
{
  "database": "main"
}