Passer au contenu principal
POST
/
v1
/
public
/
accounts
/
{account_id}
/
dns-records
Créer un enregistrement 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.

Autorisations

Authorization
string
header
requis

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

Paramètres de chemin

account_id
string<uuid>
requis

Corps

application/json

Schéma de demande pour créer un enregistrement DNS.

domain
string
requis
name
string
requis
type
string
requis
value
string
requis
prio
integer | null
Plage requise: 0 <= x <= 65535
ttl
integer
défaut:3600
Plage requise: x >= 1

Réponse

id
integer
requis
name
string
requis
ttl
integer
requis
type
string
requis
value
string
requis
is_system_managed
boolean
défaut:false
priority
integer | null