Update Site Settings
POST /v1/tenant/site
Updates site configuration for a tenant including branding, preferences, and feature flags. The endpoint validates the payload, applies defaults for any missing fields, and persists the changes. Returns the complete updated site settings with all current values including brand colors, assets, and configuration options.
Request Body
{
"webshopEnabled": true,
"colors": {
"header_background": "#1a1a1a",
"header_icons": "#FFD700",
"primary_color": "#0055FF",
"header_navigation": "#FFFFFF"
}
}
Response Example
{
"sitename": "example-site.example.com",
"tenant": "tenant-id-1",
"colors": {
"header_background": "#1A1A1A",
"header_navigation": "#FFFFFF",
"header_icons": "#FFD700",
"primary_color": "#0055FF"
},
"title": "Example Site",
"webshopEnabled": true,
"ticket_auto_escalation_for_customers": true,
"created": 1750374628888,
"updated": 1750374628888,
"_id": "site-id-1",
"id": "site-id-1",
"__v": 0,
"logo": "/v1/files/site/tenant-id-1/logo.png",
"favicon": "/v1/files/site/tenant-id-1/favicon.png"
}