Skip to main content
POST
/
{org}
/
{repo}
/
branches
Create branch
curl --request POST \
  --url https://api.mesa.dev/api/v1/{org}/{repo}/branches \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "from": "<string>"
}
'
{
  "name": "<string>",
  "head_oid": "<string>",
  "is_default": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

org
string
required
Minimum string length: 1
repo
string
required
Minimum string length: 1

Body

application/json
name
string
required
Minimum string length: 1
from
string
required
Pattern: ^[0-9a-f]{40}$

Response

Branch created

name
string
required
head_oid
string
required
is_default
boolean
required