الانتقال إلى المحتوى الرئيسي
POST
/
v1
/
public
/
accounts
/
{account_id}
/
dns-records
إنشاء سجل DNS
curl --request POST \
  --url https://api.hybridbox.io/v1/public/accounts/{account_id}/dns-records \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "domain": "<string>",
  "name": "<string>",
  "type": "<string>",
  "value": "<string>",
  "prio": 32767,
  "ttl": 3600
}
'
{
  "id": 123,
  "name": "<string>",
  "ttl": 123,
  "type": "<string>",
  "value": "<string>",
  "is_system_managed": false,
  "priority": 123
}

Documentation Index

Fetch the complete documentation index at: https://docs.hybridbox.io/llms.txt

Use this file to discover all available pages before exploring further.

التفويضات

Authorization
string
header
مطلوب

Public API bearer credential sent as Authorization: Bearer <token>. Use either an OAuth access token or a Hybridbox Service account token.

معلمات المسار

account_id
string<uuid>
مطلوب

الجسم

application/json

مخطط طلب إنشاء سجل DNS.

domain
string
مطلوب
name
string
مطلوب
type
string
مطلوب
value
string
مطلوب
prio
integer | null
النطاق المطلوب: 0 <= x <= 65535
ttl
integer
افتراضي:3600
النطاق المطلوب: x >= 1

الاستجابة

id
integer
مطلوب
name
string
مطلوب
ttl
integer
مطلوب
type
string
مطلوب
value
string
مطلوب
is_system_managed
boolean
افتراضي:false
priority
integer | null