Skip to main content
POST
/
{org}
/
{repo}
/
branches
Create branch
curl --request POST \
  --url https://staging.depot.mesa.dev/{org}/{repo}/branches \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "from": "<string>"
}
'
{
  "name": "<string>",
  "head_sha": "<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
Minimum string length: 1

Response

Branch created

name
string
required
head_sha
string
required
is_default
boolean
required