Docs
Themes

Üstbilgi/altbilgi bölümünü güncelle

PATCH
/themes/{id}/chrome/{group}/{sectionId}

Bir üstbilgi/altbilgi bölümünü günceller. settings MERGE PATCH'tir (null anahtarı siler), blocks bölümün çocuk listesini tümüyle değiştirir, position bölümü grup içinde taşır; en az biri gerekir. {"settings": {}} tek başına yazım yapmadan güncel durumu döner.

Canlı temaya yazım onay ister: allow_live: true olmadan 409 confirm_required. expected_version (GET /themes/{id}/chrome ya da önceki yazımın version'ı) bayatsa 409 conflict + details.current_version. blocks ya da position gönderen bir yazım, expected_version olmadan da eşzamanlı yazımı sessizce ezmez. Bölümün default dışında adlandırılmış alanları varsa blocks 422 + details.code: blocks_multi_slot_unsupported ile reddedilir. themes:write.

AuthorizationBearer <token>

Site'a özel API anahtarı. Panelden Ayarlar → Bağlantılar ve anahtarlar ile üretilir.

Yeni anahtarlar blcf_k2_ ile başlar (eski blcf_live_ anahtarlar çalışmaya devam eder). blocofy login ile alınan CLI girişi de bu API'de Bearer olarak geçer; tarayıcıyla bağlanan bir yapay zekâ aracının (MCP) erişim anahtarı geçmez (401 audience_mismatch).

In: header

Path Parameters

id*string

Tema handle — opak handle (örn. t7k2p9); eski numeric id de kabul edilir.

group*string

Chrome grubu. Başka bir değer 422.

sectionId*string

Bölümün id'si (GET /themes/{id}/chrome yanıtındaki id).

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/themes/string/chrome/header/string" \  -H "Content-Type: application/json" \  -d '{}'
{  "instance": "string",  "area": "header",  "section": {    "id": "string",    "type": "string"  },  "section_count": 0,  "version": 0,  "live": true,  "live_applied": true,  "preview_applied": true,  "live_requires": "theme_publish",  "live_requires_hint": "string",  "warning": "string"}
{  "error": {    "code": "invalid_key",    "message": "API anahtarı geçersiz veya iptal edilmiş."  }}
{  "error": {    "code": "forbidden_scope",    "message": "Bu işlem 'content:read' scope'u gerektirir."  }}
{  "error": {    "code": "not_found",    "message": "Kayıt bulunamadı."  }}
{  "error": {    "code": "method_not_allowed",    "message": "Bu uç yalnız <Allow başlığındaki fiiller> kabul eder."  }}
{  "error": {    "code": "conflict",    "message": "Üstbilgi/altbilgi eşzamanlı değiştirildi; yeniden okuyup tekrar deneyin.",    "details": {      "current_version": 7    }  }}
{  "error": {    "code": "invalid_key",    "message": "string",    "hint": "string",    "docs_url": "http://example.com",    "details": null  }}
{  "error": {    "code": "rate_limited",    "message": "İstek limiti aşıldı."  }}