Skip to main content
PUT
/
api
/
v1
/
git
/
settings
Update Git settings
curl --request PUT \
  --url http://localhost:3000/api/v1/git/settings \
  --header 'Content-Type: application/json' \
  --cookie nut-session= \
  --data '
{
  "user": {
    "name": "<string>",
    "email": "jsmith@example.com"
  },
  "defaultBranch": "<string>",
  "autoCommit": true,
  "signCommits": true
}
'
{
  "success": true,
  "data": {
    "settings": {
      "user": {
        "name": "<string>",
        "email": "jsmith@example.com"
      },
      "defaultBranch": "<string>",
      "autoCommit": true,
      "signCommits": true
    }
  }
}

Authorizations

nut-session
string
cookie
required

Session cookie authentication

Body

application/json
user
object
defaultBranch
string
autoCommit
boolean
signCommits
boolean

Response

Git settings updated

success
boolean
required
data
object