Partially update one DNS record's CDN proxy state. Get id from GET /api/v2/domains/{id}/dns zone.id or GET /api/v2/dns-zones, and get recordId from records[].id. This is the DNS-record surface for proxying; callers do not need to list or mutate CDN proxy-rule resources. The endpoint reads the DNS record before changing proxy state, so API-key callers need both write:cdn and read:dns. The record must be A, AAAA, or CNAME and CDN must be enabled for the zone.
write:cdnread:dns
Use Authorization: Bearer <token> for API keys. Dashboard sessions may also use hostup_session.
id string required
Example: zone_01hxa3b4c5d6e7f8g9h0j1k2m3 Public DNS zone ID. Get it from GET /api/v2/dns-zones `data[].id`. Do not invent this value; use the exact ID returned by the referenced API response.
recordId string required
Example: drr_01hxa3b4c5d6e7f8g9h0j1k2m3 Public DNS record ID. Get it from GET /api/v2/dns-zones/{id} `records[].id`. Do not invent this value; use the exact ID returned by the referenced API response.
Accept Example Content-Type Example proxied boolean
· Example: true Set to true to route this DNS record through CDN proxying, or false to keep it DNS-only. Valid only for proxy-capable A, AAAA, and CNAME records.
id string
· Example: drr_01hxa3b4c5d6e7f8g9h0j1k2m3 type string · enum
· Example: TXT A AAAA CNAME ALIAS MX TXT SRV CAA NS TLSA name string
· Example: _dmarc.example.com value string
· Example: v=DMARC1; p=none; rua=mailto:dmarc@example.com ttl integer
· Example: 3600 priority integernull
· Example: 10 Present only for MX and SRV records. `null` means the upstream DNS provider omitted priority for a priority-capable record.
weight integernull
· Example: 5 Present only for SRV records. `null` means the upstream DNS provider omitted weight for an SRV record.
port integernull
· Example: 5060 Present only for SRV records. `null` means the upstream DNS provider omitted port for an SRV record.
proxied boolean
· Example: false Present only on A, AAAA, and CNAME records when the CDN proxy state is known. Omitted for record types that cannot be proxied.
proxyReason string
· Example: Mail server records cannot be proxied because MX records depend on them. Present only when this proxy-capable record has a customer-facing reason that prevents changing the proxy state.
actions object Compact action gates for state that belongs to this DNS record. Present only when a server-side action gate is relevant to the record.
actions.canChangeProxy object required actions.canChangeProxy.allowed boolean required
· Example: true actions.canChangeProxy.reason stringnull required
· Example: null actions.canChangeProxy.code stringnull
· Example: pending_order Machine-readable reason code when an action is blocked.
warnings array<object> Present on DNS write responses when the request succeeded but the resulting same-name record set deserves review, for example multiple A records, remaining AAAA records, or multiple MX records.
warnings[].code string · enum required
· Example: same_name_address_records same_name_address_records same_name_ipv6_records same_name_mx_records warnings[].severity string · enum required
· Example: warning warning warnings[].message string required
· Example: There are now multiple A records for example.com. This is valid for some setups, but if... warnings[].records array<object> required Existing records that triggered the warning. The newly created or updated record is the main response object.
warnings[].records[].id string required
· Example: drr_01hxa3b4c5d6e7f8g9h0j1k2m4 warnings[].records[].type string required
· Example: A warnings[].records[].name string required
· Example: example.com warnings[].records[].value string required
· Example: 198.51.100.25 warnings[].records[].priority integernull
· Example: 10 type string
· Example: https://developer.hostup.se/errors/invalid_request title string
· Example: Validation failed status integer
· Example: 400 detail string
· Example: The request body failed validation. code string
· Example: invalid_request Stable machine-readable code. Branch on this field, not on `detail`.
instance string
· Example: /api/v2/orders requestId string
· Example: req_01hxa3b4c5d6e7f8g9h0j1k2m3 timestamp string
· Example: 2026-04-27T12:34:56.000Z errors array<object> Field-level validation errors when `code` is `invalid_request`.
errors[].pointer string required
· Example: /items/0/eppCode errors[].detail string required
· Example: `eppCode` is required for this transfer. errors[].code string required
· Example: missing_required extensions object type string
· Example: https://developer.hostup.se/errors/invalid_request title string
· Example: Validation failed status integer
· Example: 400 detail string
· Example: The request body failed validation. code string
· Example: invalid_request Stable machine-readable code. Branch on this field, not on `detail`.
instance string
· Example: /api/v2/orders requestId string
· Example: req_01hxa3b4c5d6e7f8g9h0j1k2m3 timestamp string
· Example: 2026-04-27T12:34:56.000Z errors array<object> Field-level validation errors when `code` is `invalid_request`.
errors[].pointer string required
· Example: /items/0/eppCode errors[].detail string required
· Example: `eppCode` is required for this transfer. errors[].code string required
· Example: missing_required extensions object type string
· Example: https://developer.hostup.se/errors/invalid_request title string
· Example: Validation failed status integer
· Example: 400 detail string
· Example: The request body failed validation. code string
· Example: invalid_request Stable machine-readable code. Branch on this field, not on `detail`.
instance string
· Example: /api/v2/orders requestId string
· Example: req_01hxa3b4c5d6e7f8g9h0j1k2m3 timestamp string
· Example: 2026-04-27T12:34:56.000Z errors array<object> Field-level validation errors when `code` is `invalid_request`.
errors[].pointer string required
· Example: /items/0/eppCode errors[].detail string required
· Example: `eppCode` is required for this transfer. errors[].code string required
· Example: missing_required extensions object type string
· Example: https://developer.hostup.se/errors/invalid_request title string
· Example: Validation failed status integer
· Example: 400 detail string
· Example: The request body failed validation. code string
· Example: invalid_request Stable machine-readable code. Branch on this field, not on `detail`.
instance string
· Example: /api/v2/orders requestId string
· Example: req_01hxa3b4c5d6e7f8g9h0j1k2m3 timestamp string
· Example: 2026-04-27T12:34:56.000Z errors array<object> Field-level validation errors when `code` is `invalid_request`.
errors[].pointer string required
· Example: /items/0/eppCode errors[].detail string required
· Example: `eppCode` is required for this transfer. errors[].code string required
· Example: missing_required extensions object type string
· Example: https://developer.hostup.se/errors/invalid_request title string
· Example: Validation failed status integer
· Example: 400 detail string
· Example: The request body failed validation. code string
· Example: invalid_request Stable machine-readable code. Branch on this field, not on `detail`.
instance string
· Example: /api/v2/orders requestId string
· Example: req_01hxa3b4c5d6e7f8g9h0j1k2m3 timestamp string
· Example: 2026-04-27T12:34:56.000Z errors array<object> Field-level validation errors when `code` is `invalid_request`.
errors[].pointer string required
· Example: /items/0/eppCode errors[].detail string required
· Example: `eppCode` is required for this transfer. errors[].code string required
· Example: missing_required extensions object type string
· Example: https://developer.hostup.se/errors/invalid_request title string
· Example: Validation failed status integer
· Example: 400 detail string
· Example: The request body failed validation. code string
· Example: invalid_request Stable machine-readable code. Branch on this field, not on `detail`.
instance string
· Example: /api/v2/orders requestId string
· Example: req_01hxa3b4c5d6e7f8g9h0j1k2m3 timestamp string
· Example: 2026-04-27T12:34:56.000Z errors array<object> Field-level validation errors when `code` is `invalid_request`.
errors[].pointer string required
· Example: /items/0/eppCode errors[].detail string required
· Example: `eppCode` is required for this transfer. errors[].code string required
· Example: missing_required extensions object type string
· Example: https://developer.hostup.se/errors/invalid_request title string
· Example: Validation failed status integer
· Example: 400 detail string
· Example: The request body failed validation. code string
· Example: invalid_request Stable machine-readable code. Branch on this field, not on `detail`.
instance string
· Example: /api/v2/orders requestId string
· Example: req_01hxa3b4c5d6e7f8g9h0j1k2m3 timestamp string
· Example: 2026-04-27T12:34:56.000Z errors array<object> Field-level validation errors when `code` is `invalid_request`.
errors[].pointer string required
· Example: /items/0/eppCode errors[].detail string required
· Example: `eppCode` is required for this transfer. errors[].code string required
· Example: missing_required extensions object https://cloud.hostup.se/api/v2/dns-zones/{id}/records/{recordId} curl -X PATCH "https://cloud.hostup.se/api/v2/dns-zones/zone_01hxa3b4c5d6e7f8g9h0j1k2m3/records/drr_01hxa3b4c5d6e7f8g9h0j1k2m3" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"proxied": true
}' {
"id": "drr_01hxa3b4c5d6e7f8g9h0j1k2m4",
"type": "A",
"name": "www.example.com",
"value": "203.0.113.10",
"ttl": 3600,
"proxied": true,
"actions": {
"canChangeProxy": {
"allowed": true,
"reason": null
}
}
} {
"proxied": true
}