---
title: "Pushes a database branch"
method: POST
path: "/v1/branches/{branch_id_or_ref}/push"
tags: ["Environments"]
---

# Pushes a database branch

`POST /v1/branches/{branch_id_or_ref}/push`

Pushes the specified database branch

## Path parameters

- `branch_id_or_ref` union, required
  - string — Project ref
  - string, uuid

## Request body

- BranchActionBody
  - `migration_version` string

## Response `201`

- BranchUpdateResponse
  - `workflow_run_id` string, required
  - `message` 'ok', required

## Other responses

- `500` — Failed to push database branch

---

[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)
