Skip to main content
POST
/
api
/
v1
/
git
/
branches
Create branch
curl --request POST \
  --url http://localhost:3000/api/v1/git/branches \
  --header 'Content-Type: application/json' \
  --cookie nut-session= \
  --data '
{
  "name": "<string>",
  "startPoint": "<string>"
}
'
{
  "success": true,
  "data": {
    "branch": {
      "name": "<string>",
      "current": true,
      "remote": "<string>",
      "commit": "<string>"
    }
  }
}

Authorizations

nut-session
string
cookie
required

Session cookie authentication

Body

application/json
name
string
required

Branch name

startPoint
string

Starting commit/branch

Response

Branch created

success
boolean
required
data
object