Skip to main content
PUT
/
api
/
v1
/
config
Update configuration
curl --request PUT \
  --url http://localhost:3001/api/v1/config \
  --header 'Content-Type: application/json' \
  --cookie nut-session= \
  --data '
{
  "coconut": {},
  "scripts": {}
}
'
{
  "success": true,
  "data": {
    "config": {
      "name": "<string>",
      "defaultSkill": "<string>",
      "aiModel": "<string>",
      "mcpServers": {},
      "coconut": {},
      "scripts": {}
    }
  }
}

Authorizations

nut-session
string
cookie
required

Session cookie authentication

Body

application/json

Partial config update. At least one of coconut or scripts must be provided.

coconut
object

Coconut identity to merge into existing config

scripts
object

Named scripts. Replaces the entire scripts section.

Response

Configuration updated

success
boolean
required
data
object