Skip to main content
POST
Update Configuration
Imports a complete system configuration object, updating all settings atomically. This endpoint allows administrators to restore configurations from backups or apply configuration changes in bulk.

Authentication

Requires admin authentication.

Request Body

object
required
Complete configuration object to import. See the response schema from GET /api/configs/export for the full structure.

Response

Returns the updated configuration object in the same format as GET /api/configs/export.
integer
Configuration version number
object
UI-related configuration settings (see GET endpoint for full schema)
object
Authentication configuration (see GET endpoint for full schema)
object
OAuth configuration settings (see GET endpoint for full schema)
object
Ollama configuration (see GET endpoint for full schema)
object
OpenAI configuration (see GET endpoint for full schema)
object
Model configuration (see GET endpoint for full schema)
object
Tool server configuration (see GET endpoint for full schema)
object
Terminal server configuration (see GET endpoint for full schema)
object
Direct connection settings (see GET endpoint for full schema)
object
Web UI configuration (see GET endpoint for full schema)
object
User configuration (see GET endpoint for full schema)
object
Folder configuration (see GET endpoint for full schema)
object
Channel configuration (see GET endpoint for full schema)
object
Notes configuration (see GET endpoint for full schema)
string
Webhook URL for notifications

Example Request

Example Response

Notes

  • This endpoint performs a complete configuration replacement. All existing configuration values will be overwritten.
  • Partial updates are not supported. To update specific settings, retrieve the current configuration with GET /api/configs/export, modify the desired fields, and POST the complete object back.
  • Configuration changes take effect immediately and may affect all users.
  • It’s recommended to back up the current configuration before importing a new one.
  • Some configuration changes may require a server restart to take full effect.