Toplu Konu Ekleme
Aynı anda birden fazla konu eklemek için bu endpoint'i kullanabilirsiniz.
📋 Endpoint Bilgileri
- URL:
/api/v1/konular/toplu-konu-ekle - Method:
POST - Content-Type:
application/json - Authentication: Bearer Token gerekli
📝 Request
Body Parameters
| Parametre | Tip | Zorunlu | Açıklama |
|---|---|---|---|
konular | array | ✅ | Konu listesi |
konular[].konu | string | ✅ | Konu adı |
konular[].limit | integer | ✅ | Makale limiti |
Request Example
{
"konular": [
{
"konu": "Artificial Intelligence",
"limit": 40
},
{
"konu": "Machine Learning",
"limit": 35
},
{
"konu": "Data Science",
"limit": 30
}
]
}
💻 Kod Örneği
async function addBulkTopics(accessToken, topics) {
const response = await fetch(
"https://integration.seoauthor.ai/api/v1/konular/toplu-konu-ekle",
{
method: "POST",
headers: {
Authorization: `Bearer ${accessToken}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
konular: topics,
}),
}
);
return response.json();
}
// Kullanım
const topics = [
{ konu: "Blockchain", limit: 25 },
{ konu: "Cryptocurrency", limit: 20 },
{ konu: "NFT", limit: 15 },
];
addBulkTopics("token", topics);