mijn.host API
  1. Domains
mijn.host API
  • Getting started
    • Introduction
    • Base url
    • Authentication
    • Response codes
  • Domains
    • Domains
      • List domains
        GET
      • Get domain
        GET
      • Update domain
        PUT
      • Cancel domain
        DELETE
      • Get DNS records
        GET
      • Update DNS records
        PUT
      • Update single DNS record
        PATCH
      • Get auth code
        GET
      • Cancel domain deletion
        PUT
    • Contacts
      • List profiles
      • Create profile
      • Update profile
      • Get profile
    • Nameservers
      • List profiles
      • Create profile
      • Update profile
      • Get profile
    • DNS templates
      • List templates
      • Create template
      • Update template
      • Get template
    • Availability
      • Check domain availability
    • Order
      • Order domain
  1. Domains

Update single DNS record

PATCH
/domains/{domain}/dns
Update a single DNS record of a specific domain.

Request

Authorization
Add parameter in header
API-Key
Example:
API-Key: ********************
Path Params

Header Params

Body Params application/json

Example
{
    "record": {
        "type": "A",
        "name": "domain.com.",
        "value": "135.226.123.12",
        "ttl": 900
    }
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
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

🟢200OK
application/json
Body

Example
{
    "status": 200,
    "status_description": "DNS successfully updated"
}
🟠400Invalid input
Modified at 2024-10-29 09:39:35
Previous
Update DNS records
Next
Get auth code
Built with