跳转到主要内容
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