Web (Site Kurucu)

themes

5 uç · /api/web/v1/themes

İstek örnekleri ucun GERÇEK metodu ve yolundan üretilir. 5 ucun elle doğrulanmış gövde örneği henüz yok; o uçlarda iskelet gövdesizdir — uydurma bir alan yazmıyoruz.

GET/api/web/v1/themes

GET /api/web/v1/audit

Oturum
İstek
curl -X GET "https://{slug}--panel.web.blesyum.app/api/web/v1/themes" \
  -H "Authorization: Bearer <oturum-token>" \
  -H "Accept: application/json"
Yanıt
{
  "data": "…",
  "trace_id": "01JC…"
}
POST/api/web/v1/themes

POST /api/web/v1/sites/{site}/media — çok parçalı yükleme (panel).

Oturum
İstek
curl -X POST "https://{slug}--panel.web.blesyum.app/api/web/v1/themes" \
  -H "Authorization: Bearer <oturum-token>" \
  -H "Accept: application/json"
Yanıt
{
  "data": "…",
  "trace_id": "01JC…"
}
GET/api/web/v1/themes/{theme}

GET /api/web/v1/library/{id} — gövdeyi getir (yapıştırma için).

OturumYol parametresi: theme
İstek
curl -X GET "https://{slug}--panel.web.blesyum.app/api/web/v1/themes/<theme>" \
  -H "Authorization: Bearer <oturum-token>" \
  -H "Accept: application/json"
Yanıt
{
  "data": "…",
  "trace_id": "01JC…"
}
DELETE/api/web/v1/themes/{theme}

DELETE /api/web/v1/themes/{theme}

OturumYol parametresi: theme

🔴 Bir sitede AKTİF olan tema kaldırılamaz. FK on delete set nulldır: silmek siteyi sessizce temasız bırakır ve ziyaretçi o an yerleşik varsayılan temaya düşer — müşterinin canlı sitesi habersizce başka görünür. Sebep SÖYLENİR ve kaç site olduğu yazılır.

İstek
curl -X DELETE "https://{slug}--panel.web.blesyum.app/api/web/v1/themes/<theme>" \
  -H "Authorization: Bearer <oturum-token>" \
  -H "Accept: application/json"
Yanıt
{
  "data": "…",
  "trace_id": "01JC…"
}
PUT/api/web/v1/themes/{theme}/settings

PUT /api/web/v1/themes/{theme}/settings

OturumYol parametresi: theme

⚠ Yama (coalesce) DEĞİL, **birleştirme**: verilmeyen anahtar DEĞİŞMEZ, null verilen anahtar TEMİZLENİR. İki AYRI niyet, iki AYRI davranış (ayarlar.rsin aynı sözleşmesi).

İstek
curl -X PUT "https://{slug}--panel.web.blesyum.app/api/web/v1/themes/<theme>/settings" \
  -H "Authorization: Bearer <oturum-token>" \
  -H "Accept: application/json"
Yanıt
{
  "data": "…",
  "trace_id": "01JC…"
}
Bu sayfa işine yaradı mı?