Domain Registration API
POST /services/domains/v1/dns/records/update Auth

Update DNS Record

Request Body Required

FieldTypeRequiredDescriptionExample
record_id integer Yes 15
type string
A, AAAA, CNAME, MX, TXT, NS, SRV, PTR, CAA, TLSA, SSHFP, NAPTR, SVCB, HTTPS, ALIAS
Yes A
name string
max: 255
Yes www
record_data string[] Yes Structured record data fields (type-specific, e.g. {"ip":"1.2.3.4"} for A records)
ttl integer
min: 300 max: 86400
No 3600
priority integer|null No 10
comment string|null
max: 500
No Primary web server

Responses

500
200
422
404
401
403
429
Internal server error
Headers
HeaderTypeDescriptionExample
X-RateLimit-Limit integer Maximum number of requests allowed per minute 60
X-RateLimit-Remaining integer Number of requests remaining in the current window 57
FieldTypeDescription
error boolean
message string
data mixed[]
Successful response
Headers
HeaderTypeDescriptionExample
X-RateLimit-Limit integer Maximum number of requests allowed per minute 60
X-RateLimit-Remaining integer Number of requests remaining in the current window 57
FieldTypeDescription
error boolean
message string
data string
Validation error
FieldTypeDescription
message string Errors overview.
errors object A detailed description of each field that failed validation.
Resource not found
Headers
HeaderTypeDescriptionExample
X-RateLimit-Limit integer Maximum number of requests allowed per minute 60
X-RateLimit-Remaining integer Number of requests remaining in the current window 57
FieldTypeDescription
error boolean
message string
data mixed[]
Unauthenticated — missing or invalid Bearer token
Headers
HeaderTypeDescriptionExample
X-RateLimit-Limit integer Maximum number of requests allowed per minute 60
X-RateLimit-Remaining integer Number of requests remaining in the current window 57
FieldTypeDescription
error boolean
message string
Forbidden — insufficient permissions for this resource
Headers
HeaderTypeDescriptionExample
X-RateLimit-Limit integer Maximum number of requests allowed per minute 60
X-RateLimit-Remaining integer Number of requests remaining in the current window 57
FieldTypeDescription
error boolean
message string
Too Many Requests — rate limit exceeded
Headers
HeaderTypeDescriptionExample
X-RateLimit-Limit integer Maximum number of requests allowed per minute 60
X-RateLimit-Remaining integer Number of requests remaining in the current window 57
Retry-After integer Seconds until the rate limit resets 60
FieldTypeDescription
error boolean
message string
Base URL
https://api.wemasy.nl/api
Authentication

Request Sample
cURL
JS
PHP
Python
curl -X POST "https://api.wemasy.nl/api/services/domains/v1/dns/records/update" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "record_id": 15,
    "type": "A",
    "name": "www",
    "record_data": [],
    "ttl": 3600,
    "priority": 10,
    "comment": "Primary web server"
}'
fetch('https://api.wemasy.nl/api/services/domains/v1/dns/records/update', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Accept': 'application/json',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "record_id": 15,
    "type": "A",
    "name": "www",
    "record_data": [],
    "ttl": 3600,
    "priority": 10,
    "comment": "Primary web server"
})})
.then(r => r.json())
.then(data => console.log(data));
$response = Http::withToken('YOUR_API_TOKEN')
    ->accept('application/json')
    ->post('https://api.wemasy.nl/api/services/domains/v1/dns/records/update', {
    "record_id": 15,
    "type": "A",
    "name": "www",
    "record_data": [],
    "ttl": 3600,
    "priority": 10,
    "comment": "Primary web server"
});
$data = $response->json();
import requests

headers = {
    "Authorization": "Bearer YOUR_API_TOKEN",
    "Accept": "application/json"
}
data = {
    "record_id": 15,
    "type": "A",
    "name": "www",
    "record_data": [],
    "ttl": 3600,
    "priority": 10,
    "comment": "Primary web server"
}
r = requests.post("https://api.wemasy.nl/api/services/domains/v1/dns/records/update", headers=headers, json=data)
print(r.json())
Response Example
{
    "error": false,
    "message": "string",
    "data": "string"
}

Try It
Request Body Required

Export