Skip to main content
PUT
/
api
/
v1
/
user
/
settings
Update user settings
curl --request PUT \
  --url http://localhost:3000/api/v1/user/settings \
  --header 'Content-Type: application/json' \
  --cookie nut-session= \
  --data '
{
  "theme": "light",
  "editorFontSize": 123,
  "terminalFontSize": 123,
  "autoSave": true,
  "notifications": {
    "enabled": true,
    "sound": true
  }
}
'
{
  "success": true,
  "data": {
    "settings": {
      "theme": "light",
      "editorFontSize": 123,
      "terminalFontSize": 123,
      "autoSave": true,
      "notifications": {
        "enabled": true,
        "sound": true
      }
    }
  }
}

Authorizations

nut-session
string
cookie
required

Session cookie authentication

Body

application/json
theme
enum<string>
Available options:
light,
dark,
system
editorFontSize
integer
terminalFontSize
integer
autoSave
boolean
notifications
object

Response

User settings updated

success
boolean
required
data
object