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
      • Cancel domain deletion
        PUT
      • Get DNS records
        GET
      • Update DNS records
        PUT
      • Update single DNS record
        PATCH
      • Get auth code
        GET
    • Contacts
      • List profiles
      • Get profile
      • Create profile
      • Update profile
      • Delete profile
      • Get profile
      • Update profile
    • Nameservers
      • List profiles
      • Get profile
      • Create profile
      • Update profile
      • Delete profile
    • DNS templates
      • List templates
      • Get template
      • Create template
      • Update template
      • Delete template
    • Availability
      • Check domain availability
    • Order
      • Order domain
    • Extensions
      • List domain extensions
      • Get domain extension
  • Virtual Private Servers
    • Backups
      • List backups
      • Create backup
      • Restore backup
    • List VPS instances
      GET
    • VPS details
      GET
    • Update VPS
      PUT
    • Restart VPS
      POST
    • Enable or disable rescue mode
      PUT
    • Cancel VPS
      DELETE
    • Cancel VPS deletion
      PUT
    • List available OS images
      GET
    • Reinstall VPS
      POST
  • Orders
    • List orders
    • Get order
    • Update order
  • Affiliate
    • Commissions
      • List affiliate commissions
      • Get affiliate commission
    • Payments
      • List affiliate payments
      • Get affiliate payment
  • Account
    • Profile
      • Get account profile
      • Update account profile
    • Payment methods
      • List payment methods
      • Update default payment method
    • Invoices
      • List invoices
      • Get invoice
      • Download invoice PDF
    • Users
      • List account users
      • Get account user
      • Create account user
      • Update account user
    • Tickets
      • List support tickets
      • Get support ticket
      • Create support ticket
      • Reply to support ticket
  1. Domains

Update domain

PUT
/domains/{domain}
Update domain settings of an existing domain in your account. Optional fields left empty will not be updated. Optional dnssec.enabled false removes all DNSSEC keys. Optional forwarder updates the URL forwarder (enabled, type, url). Optional tags replaces the domain's tag set when provided.

Request

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

Header Params

Body Params application/json

Example
{
    "nameserver": "default-mijnhost",
    "is_locked": true,
    "dnssec": {
        "flags": 257,
        "alg": 13,
        "protocol": 3,
        "pubKey": "zIbIaqhKuwHLJ3kB7V7AsxhxiSpdMxtP0Dmo7b1g/4bDF9ZVV2XsyXcVHBZ5Dngcu1COS83WgLbNDC195atBcA=="
    },
    "profile": {
        "owner": 100272,
        "admin": 100272,
        "tech": 100272,
        "billing": 100272,
        "reseller": 100272
    }
}

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 PUT 'https://mijn.host/api/v2/domains/domain.com' \
--header 'Accept: application/json' \
--header 'User-Agent: my-application/1.0.0' \
--header 'API-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "nameserver": "default-mijnhost",
    "is_locked": true,
    "dnssec": {
        "flags": 257,
        "alg": 13,
        "protocol": 3,
        "pubKey": "zIbIaqhKuwHLJ3kB7V7AsxhxiSpdMxtP0Dmo7b1g/4bDF9ZVV2XsyXcVHBZ5Dngcu1COS83WgLbNDC195atBcA=="
    },
    "profile": {
        "owner": 100272,
        "admin": 100272,
        "tech": 100272,
        "billing": 100272,
        "reseller": 100272
    }
}'

Responses

🟢200OK
application/json
Body

Example
{
    "status": 0,
    "status_description": "string",
    "data": {
        "tags": [
            "string"
        ]
    }
}
đźź 400Wrong request method
đźź 400SSL connection is required
đźź 401API key has expired
đźź 401Remote IP address is not found in the API key whitelist
đźź 400Domain is suspended, nameservers cannot be edited.
đźź 400Error
Modified at 2026-04-23 08:19:58
Previous
Get domain
Next
Cancel domain
Built with