Ana içeriğe geç

Site Ayarlari

Branding, coklu dilde site metinleri, SEO alanlari ve sosyal medya baglantilarinin yonetimi.

Base URL: /api/tenant/site-settings Yetkilendirme: Bearer Token + X-Api-Key Modul: site-settings modulu musteriye atanmis olmalidir.

Headers:

Authorization: Bearer eyJhbGciOiJIUzI1NiIs...
X-Api-Key: customer-api-key

GET /

Mevcut site ayarlarini getirir.

Response - 200 OK:

{
"success": true,
"data": {
"id": "3fa85f64-...",
"isActive": true,
"logoFileUrl": "https://storage.kompanse.com/site/logo.png",
"logoDarkFileUrl": null,
"faviconFileUrl": "https://storage.kompanse.com/site/favicon.ico",
"appleTouchIconUrl": null,
"defaultOgImageUrl": null,
"canonicalBaseUrl": "https://example.com",
"themeColor": "#111827",
"supportEmail": "hello@example.com",
"supportPhone": "+90 555 000 00 00",
"address": "Istanbul",
"robotsIndex": true,
"robotsFollow": true,
"translations": [
{
"languageId": "tr-language-id",
"languageCode": "tr",
"siteName": "Ornek Site",
"tagline": "Ornek slogan",
"seoTitle": "Ornek Site",
"seoDescription": "Ornek aciklama",
"seoKeywords": "cms, headless, site",
"ogTitle": "Ornek Site",
"ogDescription": "Ornek aciklama",
"footerText": "Tum haklari saklidir.",
"copyrightText": "2026 Ornek Site"
}
],
"socialLinks": [
{
"id": "link-id",
"platform": "LinkedIn",
"url": "https://www.linkedin.com/company/kompanse",
"sortOrder": 1,
"isActive": true
}
]
}
}

PUT /

Site ayarlarini olusturur veya gunceller.

Request Body:

{
"isActive": true,
"logoFileUrl": "https://storage.kompanse.com/site/logo.png",
"logoDarkFileUrl": "https://storage.kompanse.com/site/logo-dark.png",
"faviconFileUrl": "https://storage.kompanse.com/site/favicon.ico",
"appleTouchIconUrl": null,
"defaultOgImageUrl": null,
"canonicalBaseUrl": "https://example.com",
"themeColor": "#111827",
"supportEmail": "hello@example.com",
"supportPhone": "+90 555 000 00 00",
"address": "Istanbul",
"robotsIndex": true,
"robotsFollow": true,
"translations": [
{
"languageId": "tr-language-id",
"siteName": "Ornek Site",
"tagline": "Ornek slogan",
"seoTitle": "Ornek Site",
"seoDescription": "Ornek aciklama",
"seoKeywords": "cms, headless, site",
"ogTitle": "Ornek Site",
"ogDescription": "Ornek aciklama",
"footerText": "Tum haklari saklidir.",
"copyrightText": "2026 Ornek Site"
},
{
"languageId": "en-language-id",
"siteName": "Example Site",
"tagline": "Example tagline",
"seoTitle": "Example Site",
"seoDescription": "Example description",
"seoKeywords": "cms, headless, site",
"ogTitle": "Example Site",
"ogDescription": "Example description",
"footerText": "All rights reserved.",
"copyrightText": "2026 Example Site"
}
],
"socialLinks": [
{
"platform": "LinkedIn",
"url": "https://www.linkedin.com/company/kompanse",
"sortOrder": 1,
"isActive": true
},
{
"platform": "Instagram",
"url": "https://www.instagram.com/kompanse",
"sortOrder": 2,
"isActive": true
}
]
}

Response - 200 OK: GET / ile ayni yapida SiteSettingsResponse doner.

Olası Hatalar

KodDurum
401Token eksik veya gecersiz
403Tenant kullanicisi yetkisi yok veya site-settings modulu atanmamis
404Site ayarlari bulunamadi
400Varsayilan dil cevirisi eksik veya request body gecersiz