Update a single DNS record of a specific domain.
Request
Add parameter in header API-Key
Example:API-Key: ********************
Body Params application/json
{
"record": {
"type": "A",
"name": "domain.com.",
"value": "135.226.123.12",
"ttl": 900
}
}
Request Code Samples
curl --location --request PATCH 'https://mijn.host/api/v2/domains/domain.com/dns' \
--header 'Accept;' \
--header 'User-Agent: my-application/1.0.0' \
--header 'API-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"record": {
"type": "A",
"name": "domain.com.",
"value": "135.226.123.12",
"ttl": 900
}
}'
Responses
application/json {
"status": 200,
"status_description": "DNS successfully updated"
}
Modified at 2024-10-29 09:39:35