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

Authorizations

nut-session
string
cookie
required

Session cookie authentication

Body

application/json
remote
string
default:origin

Remote name

branch
string

Branch name

Response

Pull successful

success
boolean
required
data
object