WHOIS Profilleri
Müşterinin alan adı siparişlerinde kullandığı kayıt sahibi profillerini yöneten altı uç.
Genel Bakış
WHOIS profili, müşterinin alan adı siparişlerinde tekrar kullandığı kayıtlı kayıt sahibi bilgisidir. Bir müşterinin birden çok profili olabilir ama tek bir varsayılanı olur.
Alan adları snake_case konuşur ve alan adı WHOIS iletişim uçlarıyla aynı isimleri kullanır. Veritabanında başka bir biçimde saklanır; dönüşümü API yapar, sizin ilgilenmeniz gerekmez.
Referans
Profilleri Listeleme
Müşterinin tüm WHOIS profillerini döndürür. Varsayılan profil listenin başındadır.
840.curl 'https://panel.ornek.com/api/v1/admin/clients/42/whois-profiles' \
-H "Authorization: Bearer $API_KEY"const res = await fetch('https://panel.ornek.com/api/v1/admin/clients/42/whois-profiles', {
headers: { Authorization: `Bearer ${apiKey}` },
});
const body = await res.json();$ch = curl_init('https://panel.ornek.com/api/v1/admin/clients/42/whois-profiles');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . $apiKey],
]);
$body = json_decode(curl_exec($ch), true);
curl_close($ch);$response = Api::Clients()->GetClientWhoisProfiles(['id' => 42]);
// Varsayilan bastadir, ama listenin bos olma ihtimalini de karsilayin.
$default = $response['data'][0] ?? null;{
"data": [
{
"id": 13,
"name": "Primary",
"is_default": true,
"contact": {
"first_name": "John",
"last_name": "Doe",
"email": "[email protected]",
"phone": "5550100",
"phone_cc": "1",
"address_line1": "123 Market Street",
"city": "San Francisco",
"state": "California",
"zipcode": "94105",
"country": "840"
},
"created_at": "2026-06-21 18:00:00",
"updated_at": "2026-06-21 18:05:00"
}
]
}Profil Oluşturma
Müşteriye yeni bir WHOIS profili ekler.
840.curl -X POST 'https://panel.ornek.com/api/v1/admin/clients/42/whois-profiles' \
-H "Authorization: Bearer $API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"name": "Primary",
"default": true,
"contact": {
"first_name": "John",
"last_name": "Doe",
"email": "[email protected]",
"country": "840"
}
}'const res = await fetch('https://panel.ornek.com/api/v1/admin/clients/42/whois-profiles', {
method: 'POST',
headers: {
Authorization: `Bearer ${apiKey}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
name: 'Primary',
default: true,
contact: {
first_name: 'John',
last_name: 'Doe',
email: '[email protected]',
phone: '5550100',
phone_cc: '1',
address_line1: '123 Market Street',
city: 'San Francisco',
state: 'California',
zipcode: '94105',
country: '840',
},
}),
});
const body = await res.json();$ch = curl_init('https://panel.ornek.com/api/v1/admin/clients/42/whois-profiles');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . $apiKey,
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Primary',
'default' => true,
'contact' => [
'first_name' => 'John',
'last_name' => 'Doe',
'email' => '[email protected]',
'phone' => '5550100',
'phone_cc' => '1',
'address_line1' => '123 Market Street',
'city' => 'San Francisco',
'state' => 'California',
'zipcode' => '94105',
'country' => '840',
],
]),
]);
$body = json_decode(curl_exec($ch), true);
curl_close($ch);$response = Api::Clients()->CreateClientWhoisProfile([
'id' => 42,
'name' => 'Primary',
'default' => true,
'contact' => [
'first_name' => 'John',
'last_name' => 'Doe',
'email' => '[email protected]',
'phone' => '5550100',
'phone_cc' => '1',
'address_line1' => '123 Market Street',
'city' => 'San Francisco',
'state' => 'California',
'zipcode' => '94105',
'country' => '840',
],
]);
$profileId = $response['data']['id'];{
"data": {
"id": 14,
"name": "Primary",
"is_default": true,
"contact": { "first_name": "John", "last_name": "Doe", "country": "840" },
"created_at": "2026-06-21 18:00:00",
"updated_at": "2026-06-21 18:00:00"
}
}{
"error": {
"code": "name_required",
"message": "Profile name is required."
}
}Profil Detayı
Tek bir profili döndürür. Şema liste öğesiyle aynıdır.
840.curl 'https://panel.ornek.com/api/v1/admin/clients/42/whois-profiles/13' \
-H "Authorization: Bearer $API_KEY"const res = await fetch('https://panel.ornek.com/api/v1/admin/clients/42/whois-profiles/13', {
headers: { Authorization: `Bearer ${apiKey}` },
});
const body = await res.json();$ch = curl_init('https://panel.ornek.com/api/v1/admin/clients/42/whois-profiles/13');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . $apiKey],
]);
$body = json_decode(curl_exec($ch), true);
curl_close($ch);$response = Api::Clients()->GetClientWhoisProfile(['id' => 42, 'pid' => 13]);Profili Güncelleme
Profili günceller. Göndermediğiniz üst düzey alan olduğu gibi kalır.
840.true varsayılan yapar, false varsayılanlıktan çıkarır.curl -X PUT 'https://panel.ornek.com/api/v1/admin/clients/42/whois-profiles/13' \
-H "Authorization: Bearer $API_KEY" \
-H 'Content-Type: application/json' \
-d '{"name":"Billing Contact"}'const res = await fetch('https://panel.ornek.com/api/v1/admin/clients/42/whois-profiles/13', {
method: 'PUT',
headers: {
Authorization: `Bearer ${apiKey}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({ name: 'Billing Contact' }),
});
const body = await res.json();$ch = curl_init('https://panel.ornek.com/api/v1/admin/clients/42/whois-profiles/13');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'PUT',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . $apiKey,
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode(['name' => 'Billing Contact']),
]);
$body = json_decode(curl_exec($ch), true);
curl_close($ch);// Tek bir iletisim alanini degistirmek icin once mevcut blogu okuyun.
$current = Api::Clients()->GetClientWhoisProfile(['id' => 42, 'pid' => 13])['data']['contact'];
$current['email'] = '[email protected]';
$response = Api::Clients()->UpdateClientWhoisProfile([
'id' => 42,
'pid' => 13,
'contact' => $current,
]);Varsayılanı Belirleme
Profili müşterinin varsayılanı yapar. Önceki varsayılan aynı işlemde temizlenir.
true döner.curl -X PUT 'https://panel.ornek.com/api/v1/admin/clients/42/whois-profiles/13/default' \
-H "Authorization: Bearer $API_KEY"const res = await fetch('https://panel.ornek.com/api/v1/admin/clients/42/whois-profiles/13/default', {
method: 'PUT',
headers: { Authorization: `Bearer ${apiKey}` },
});
const body = await res.json();$ch = curl_init('https://panel.ornek.com/api/v1/admin/clients/42/whois-profiles/13/default');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'PUT',
CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . $apiKey],
]);
$body = json_decode(curl_exec($ch), true);
curl_close($ch);$response = Api::Clients()->SetClientWhoisProfileDefault(['id' => 42, 'pid' => 13]);Profili Silme
Profili siler. Alan adlarında kayıtlı olan iletişim bilgisi bundan etkilenmez.
curl -X DELETE 'https://panel.ornek.com/api/v1/admin/clients/42/whois-profiles/13' \
-H "Authorization: Bearer $API_KEY"const res = await fetch('https://panel.ornek.com/api/v1/admin/clients/42/whois-profiles/13', {
method: 'DELETE',
headers: { Authorization: `Bearer ${apiKey}` },
});
const body = await res.json();$ch = curl_init('https://panel.ornek.com/api/v1/admin/clients/42/whois-profiles/13');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'DELETE',
CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . $apiKey],
]);
$body = json_decode(curl_exec($ch), true);
curl_close($ch);$response = Api::Clients()->DeleteClientWhoisProfile(['id' => 42, 'pid' => 13]);Tuzaklar
Güncellemede contact göndermek bloğun tamamını değiştirir; göndermediğiniz alanlar boşalır. Tek bir alanı değiştirmek için önce mevcut bloğu okuyun, üzerinde düzeltin, tamamını geri gönderin. Bu, üst düzey alanlardan farklı çalışır: name göndermezseniz korunur.
country alanı iki harfli kısaltmayı değil sayısal kodu bekler: Amerika Birleşik Devletleri için 840. Kısaltma göndermek profili ülkesiz bırakır ve alan adı kaydı tescil kuruluşunda başarısız olabilir.
Bir profili varsayılan yapmak, o müşterinin önceki varsayılanını aynı işlemde temizler. Ayrı bir onay ya da uyarı yoktur; sonucu doğrulamak için listeyi yeniden okuyun.
İlgili Makaleler
Geri bildiriminiz için teşekkürler!
Yukarıda bulamadığınız her şey için destek ekibimiz her zaman yanınızda.