Docs
Content

Taksonomi terimi oluştur

POST
/content/{collectionKey}/terms

Bir taksonomi koleksiyonuna terim ekler. Gövde yalnız name. Ad slug'a çevrilir ve koleksiyon içinde benzersizleştirilir (spor varsa spor-2, …). Terim yayında olarak ve sitenin varsayılan dilinde oluşturulur. Taksonomi alanının hedef koleksiyonuna terim eklerken POST /content/{collectionKey}/entries yerine bunu kullanın. content: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

collectionKey*string

Koleksiyon key'i.

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 POST "https://example.com/content/string/terms" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
{  "entry": {    "id": 0,    "collection": "string",    "title": "string",    "slug": "string",    "status": "string",    "published_at": "2019-08-24T14:15:22Z",    "unpublish_at": "2019-08-24T14:15:22Z",    "first_published_at": "2019-08-24T14:15:22Z",    "locale": "string",    "translation_key": "string",    "seo_title": "string",    "seo_description": "string",    "og_image": "string",    "canonical_url": "string",    "robots": "string",    "url": "string",    "data": {},    "shared": {      "fields": [        "fiyat"      ],      "schema_version": 4,      "row_version": 7,      "shared_version": 3    },    "media": {      "kapak": {        "id": "fcfe05d3-a1c4-47fd-b1af-2691d1e4f5f3",        "url": "https://www.ornek.com/cdn/fcfe05d3-a1c4-47fd-b1af-2691d1e4f5f3/urun.webp",        "status": "ok"      },      "galeri": [        {          "id": null,          "url": "https://images.example.com/a.jpg",          "status": "external"        },        {          "id": "9b1c2d3e-0000-4000-8000-000000000000",          "url": null,          "status": "not_found"        }      ]    }  },  "warnings": [    "string"  ]}
{  "error": {    "code": "invalid_key",    "message": "string",    "hint": "string",    "docs_url": "http://example.com",    "details": null  }}
{  "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": "invalid_key",    "message": "string",    "hint": "string",    "docs_url": "http://example.com",    "details": null  }}
{  "error": {    "code": "rate_limited",    "message": "İstek limiti aşıldı."  }}