Update Configuration
curl --request POST \
--url https://api.example.com/api/configs/import \
--header 'Content-Type: application/json' \
--data '
{
"config": {
"version": 123,
"ui": {
"enable_signup": true,
"ENABLE_LOGIN_FORM": true,
"default_locale": "<string>",
"default_models": "<string>",
"default_pinned_models": "<string>",
"model_order_list": [
{}
],
"prompt_suggestions": [
{}
],
"banners": [
{}
]
},
"auth": {
"enable_api_keys": true,
"jwt_expiry": "<string>"
},
"oauth": {
"enable_signup": true,
"merge_accounts_by_email": true
},
"ollama": {
"enable": true,
"base_urls": [
{}
],
"api_configs": {}
},
"openai": {
"enable": true,
"api_keys": [
{}
],
"api_base_urls": [
{}
],
"api_configs": {}
},
"models": {
"base_models_cache": true,
"default_metadata": {},
"default_params": {}
},
"tool_server": {
"connections": [
{}
]
},
"terminal_server": {
"connections": [
{}
]
},
"direct": {
"enable": true
},
"webui": {
"url": "<string>"
},
"user": {
"permissions": {}
},
"folders": {
"enable": true,
"max_file_count": "<string>"
},
"channels": {
"enable": true
},
"notes": {
"enable": true
},
"webhook_url": "<string>"
}
}
'{
"version": 123,
"ui": {},
"auth": {},
"oauth": {},
"ollama": {},
"openai": {},
"models": {},
"tool_server": {},
"terminal_server": {},
"direct": {},
"webui": {},
"user": {},
"folders": {},
"channels": {},
"notes": {},
"webhook_url": "<string>"
}Configuration
Update Configuration
Import and update the complete system configuration
POST
/
api
/
configs
/
import
Update Configuration
curl --request POST \
--url https://api.example.com/api/configs/import \
--header 'Content-Type: application/json' \
--data '
{
"config": {
"version": 123,
"ui": {
"enable_signup": true,
"ENABLE_LOGIN_FORM": true,
"default_locale": "<string>",
"default_models": "<string>",
"default_pinned_models": "<string>",
"model_order_list": [
{}
],
"prompt_suggestions": [
{}
],
"banners": [
{}
]
},
"auth": {
"enable_api_keys": true,
"jwt_expiry": "<string>"
},
"oauth": {
"enable_signup": true,
"merge_accounts_by_email": true
},
"ollama": {
"enable": true,
"base_urls": [
{}
],
"api_configs": {}
},
"openai": {
"enable": true,
"api_keys": [
{}
],
"api_base_urls": [
{}
],
"api_configs": {}
},
"models": {
"base_models_cache": true,
"default_metadata": {},
"default_params": {}
},
"tool_server": {
"connections": [
{}
]
},
"terminal_server": {
"connections": [
{}
]
},
"direct": {
"enable": true
},
"webui": {
"url": "<string>"
},
"user": {
"permissions": {}
},
"folders": {
"enable": true,
"max_file_count": "<string>"
},
"channels": {
"enable": true
},
"notes": {
"enable": true
},
"webhook_url": "<string>"
}
}
'{
"version": 123,
"ui": {},
"auth": {},
"oauth": {},
"ollama": {},
"openai": {},
"models": {},
"tool_server": {},
"terminal_server": {},
"direct": {},
"webui": {},
"user": {},
"folders": {},
"channels": {},
"notes": {},
"webhook_url": "<string>"
}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
Complete configuration object to import. See the response schema from GET /api/configs/export for the full structure.
Show properties
Show properties
Configuration version number
UI-related configuration settings
Show properties
Show properties
Whether user signup is enabled
Whether login form is displayed
Default locale for the UI
Comma-separated list of default models
Comma-separated list of pinned models
Ordered list of model IDs
Array of prompt suggestion objects
Array of banner objects
Tool server configuration
Show properties
Show properties
Array of tool server connection objects
Terminal server configuration
Show properties
Show properties
Array of terminal server connection objects
Direct connection settings
Show properties
Show properties
Whether direct connections are enabled
Webhook URL for notifications
Response
Returns the updated configuration object in the same format as GET /api/configs/export.Configuration version number
UI-related configuration settings (see GET endpoint for full schema)
Authentication configuration (see GET endpoint for full schema)
OAuth configuration settings (see GET endpoint for full schema)
Ollama configuration (see GET endpoint for full schema)
OpenAI configuration (see GET endpoint for full schema)
Model configuration (see GET endpoint for full schema)
Tool server configuration (see GET endpoint for full schema)
Terminal server configuration (see GET endpoint for full schema)
Direct connection settings (see GET endpoint for full schema)
Web UI configuration (see GET endpoint for full schema)
User configuration (see GET endpoint for full schema)
Folder configuration (see GET endpoint for full schema)
Channel configuration (see GET endpoint for full schema)
Notes configuration (see GET endpoint for full schema)
Webhook URL for notifications
Example Request
{
"config": {
"version": 0,
"ui": {
"enable_signup": false,
"ENABLE_LOGIN_FORM": true,
"default_locale": "en-US",
"default_models": "gpt-4,gpt-3.5-turbo",
"default_pinned_models": "gpt-4",
"model_order_list": [],
"prompt_suggestions": [
{
"title": ["Help me study", "vocabulary for a college entrance exam"],
"content": "Help me study vocabulary: write a sentence for me to fill in the blank, and I'll try to pick the correct option."
}
],
"default_user_role": "user",
"default_group_id": "",
"watermark": "Generated by Open WebUI",
"enable_community_sharing": true,
"enable_message_rating": true,
"enable_user_webhooks": true,
"banners": [
{
"id": "maintenance-notice",
"type": "info",
"title": "Scheduled Maintenance",
"content": "System maintenance scheduled for tonight at 11 PM UTC.",
"dismissible": true,
"timestamp": 1709251200
}
]
},
"auth": {
"enable_api_keys": true,
"api_key": {
"endpoint_restrictions": true,
"allowed_endpoints": "/api/chat,/api/completions"
},
"jwt_expiry": "2w",
"admin": {
"show": true,
"email": "admin@example.com"
}
},
"ollama": {
"enable": true,
"base_urls": ["http://localhost:11434"],
"api_configs": {}
},
"openai": {
"enable": true,
"api_keys": ["sk-..."],
"api_base_urls": ["https://api.openai.com/v1"],
"api_configs": {}
},
"models": {
"base_models_cache": true,
"default_metadata": {},
"default_params": {
"temperature": 0.7,
"top_p": 0.9
}
},
"tool_server": {
"connections": [
{
"url": "https://tools.example.com",
"path": "/openapi.json",
"type": "openapi",
"auth_type": "bearer",
"key": "your-api-key"
}
]
},
"direct": {
"enable": false
},
"webui": {
"url": "https://chat.example.com"
}
}
}
Example Response
{
"version": 0,
"ui": {
"enable_signup": false,
"ENABLE_LOGIN_FORM": true,
"default_locale": "en-US",
"default_models": "gpt-4,gpt-3.5-turbo",
"default_pinned_models": "gpt-4",
"model_order_list": [],
"prompt_suggestions": [
{
"title": ["Help me study", "vocabulary for a college entrance exam"],
"content": "Help me study vocabulary: write a sentence for me to fill in the blank, and I'll try to pick the correct option."
}
],
"default_user_role": "user",
"default_group_id": "",
"watermark": "Generated by Open WebUI",
"enable_community_sharing": true,
"enable_message_rating": true,
"enable_user_webhooks": true,
"banners": [
{
"id": "maintenance-notice",
"type": "info",
"title": "Scheduled Maintenance",
"content": "System maintenance scheduled for tonight at 11 PM UTC.",
"dismissible": true,
"timestamp": 1709251200
}
]
},
"auth": {
"enable_api_keys": true,
"api_key": {
"endpoint_restrictions": true,
"allowed_endpoints": "/api/chat,/api/completions"
},
"jwt_expiry": "2w",
"admin": {
"show": true,
"email": "admin@example.com"
}
},
"ollama": {
"enable": true,
"base_urls": ["http://localhost:11434"],
"api_configs": {}
},
"openai": {
"enable": true,
"api_keys": ["sk-..."],
"api_base_urls": ["https://api.openai.com/v1"],
"api_configs": {}
},
"models": {
"base_models_cache": true,
"default_metadata": {},
"default_params": {
"temperature": 0.7,
"top_p": 0.9
}
},
"tool_server": {
"connections": [
{
"url": "https://tools.example.com",
"path": "/openapi.json",
"type": "openapi",
"auth_type": "bearer",
"key": "your-api-key"
}
]
},
"direct": {
"enable": false
},
"webui": {
"url": "https://chat.example.com"
}
}
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.
⌘I