Pular para o conteúdo principal
POST
/
v1
/
public
/
accounts
/
{account_id}
/
dns-records
Criar registro 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.

Autorizações

Authorization
string
header
obrigatório

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

Parâmetros de caminho

account_id
string<uuid>
obrigatório

Corpo

application/json

Esquema de solicitação para criar um registro DNS.

domain
string
obrigatório
name
string
obrigatório
type
string
obrigatório
value
string
obrigatório
prio
integer | null
Intervalo obrigatório: 0 <= x <= 65535
ttl
integer
padrão:3600
Intervalo obrigatório: x >= 1

Resposta

id
integer
obrigatório
name
string
obrigatório
ttl
integer
obrigatório
type
string
obrigatório
value
string
obrigatório
is_system_managed
boolean
padrão:false
priority
integer | null