/api/v2/domains/{id} Update writable settings for one domain and return the refreshed domain detail.
Get {id} from GET /api/v2/domains data[].id.
The route accepts only boolean autoRenew, registrarLock, whoisPrivacyAutoEnable, and cancelPendingOrder; unknown fields are rejected.
autoRenew: true is rejected with 409 auto_renew_unavailable while the domain is pending.
cancelPendingOrder: true is only valid with autoRenew: false in the same request and additionally requires write:billing.
For domains whose registryLock.requiresManualUnlockFlow is true, disabling registrar lock is not a simple PATCH; call the registryLock.unlockAction.href returned by GET /api/v2/domains/{id} or GET /api/v2/domains/{id}/nameservers.
write:domainswrite:billing
Authenticate with an API key in the Authorization: Bearer <token> header.
id string required
Example: dom_01hxa3b4c5d6e7f8g9h0j1k2m3 Public domain ID from GET /api/v2/domains data[].id. Do not invent this value; use the exact ID returned by the referenced API response.
Authorization Bearer <token> Accept application/json Content-Type application/json autoRenew boolean
· Example: false Enable or disable automatic renewal. Enabling is available after the domain is active. Disabling always works; if a pending renewal order exists, first read pendingRenewalOrder and send cancelPendingOrder: true after user confirmation.
cancelPendingOrder boolean
· Example: true Best-effort cancellation of the current pending renewal order. Valid only together with autoRenew: false and requires billing write permission.
registrarLock boolean
· Example: true Enable or disable registry/registrar lock when the domain's action gates allow it.
whoisPrivacyAutoEnable boolean
· Example: false Save whether supported WHOIS privacy should be auto-enabled for this domain.
id string
· Example: dom_01hxa3b4c5d6e7f8g9h0j1k2m3 name string
· Example: example.com serviceStatus string · enum
· Example: active active suspended terminated pending cancelled expired fraud unknown actionRequired boolean
· Example: false True when the customer must take an action before domain processing can continue. Historical registration failures are ignored after the domain leaves its pending-registration state. Follow the domain lifecycle endpoint for the reason and available recovery action.
orderId string
· Example: ord_01hxa3b4c5d6e7f8g9h0j1k2m3 lifecycle object lifecycle.type string required
· Example: standard Normalized lifecycle type. Common values are standard, registration, transfer, and renewal.
lifecycle.autoRenewEnabled boolean · nullable required
· Example: true Nullable: may be null when not applicable.
lifecycle.registrarLockEnabled boolean · nullable required
· Example: false Nullable: may be null when not applicable.
lifecycle.transferInProgress boolean required
· Example: false billing object billing.amount number required
· Example: 159 billing.currencyCode string required
· Example: SEK billing.billingCycle string · nullable · enum required
· Example: annually Canonical cycle slug for 1-3 year periods. Four- to nine-year domain periods return null and use periodYears.
annually biennially triennially billing.periodYears integer · nullable · min: 1 · max: 9 required
· Example: 1 Nullable: may be null when not applicable.
billing.initialAmount number
· Example: 99 First-period amount when it differs from the recurring amount.
createdAt string · nullable
· Example: 2025-04-27T09:00:00.000Z expiresAt string · nullable
· Example: 2027-04-27T21:59:59.000Z nextDueAt string · nullable
· Example: 2027-03-28T00:00:00.000Z tags array<string>
· Example: ["production"] pinned boolean
· Example: false contactDetailsVerification null
· Example: null Current contact-details warning for this domain, or null when no update is required.
hostingConnection object hostingConnection.type string · enum required
· Example: hosting standalone hosting wordpress hostingConnection.hostingAccountId string · nullable required
· Example: acct_01hxa3b4c5d6e7f8g9h0j1k2m3 Nullable: may be null when not applicable.
hostingConnection.hostingAccountName string · nullable required
· Example: Webbhotell Start Nullable: may be null when not applicable.
hostingConnection.hostingAccountDomain string · nullable required
· Example: example.com Nullable: may be null when not applicable.
hostingConnection.ssl object · nullable required Nullable: may be null when not applicable.
nameservers array<string>
· Example: ["primary.ns.hostup.se","secondary.ns.hostup.se"] transfer object transfer.eppCode string · nullable required
· Example: null Always null on detail reads. EPP/auth codes are reusable secrets and are only exposed by explicit EPP actions.
notes string · nullable
· Example: null pendingRenewalOrder null
· Example: null pendingDomainOrder null
· Example: null registryLock object registryLock.enabled boolean · nullable required
· Example: false Nullable: may be null when not applicable.
registryLock.requiresManualUnlockFlow boolean required
· Example: false registryLock.unlockAction object · nullable required Nullable: may be null when not applicable.
whoisPrivacy object whoisPrivacy.enabled boolean · nullable required
· Example: null Best-effort live registry privacy state. Null means the upstream detail payload did not expose the live flag.
whoisPrivacy.autoEnable boolean required
· Example: true whoisPrivacy.status string · enum required
· Example: auto_enable_allowed auto_enable_allowed auto_enable_opted_out whoisPrivacy.reason string · nullable required
· Example: null Nullable: may be null when not applicable.
whoisPrivacy.updatedAt string · nullable required
· Example: 2026-04-20T09:30:00.000Z Nullable: may be null when not applicable.
actions object actions.canDelete object required actions.canDelete.allowed boolean required
· Example: true actions.canDelete.reason string · nullable required
· Example: null Nullable: may be null when not applicable.
actions.canDelete.code string · nullable
· Example: pending_order Machine-readable reason code when an action is blocked.
actions.canActivateRegistryLock object required actions.canActivateRegistryLock.allowed boolean required
· Example: true actions.canActivateRegistryLock.reason string · nullable required
· Example: null Nullable: may be null when not applicable.
actions.canActivateRegistryLock.code string · nullable · enum
· Example: null Nullable: may be null when not applicable.
tld_not_supported lock_already_active domain_not_active actions.canRequestRegistryUnlock object required actions.canRequestRegistryUnlock.allowed boolean required
· Example: true actions.canRequestRegistryUnlock.reason string · nullable required
· Example: null Nullable: may be null when not applicable.
actions.canRequestRegistryUnlock.code string · nullable
· Example: pending_order Machine-readable reason code when an action is blocked.
actions.canChangeBillingCycle object required actions.canChangeBillingCycle.allowed boolean required
· Example: true actions.canChangeBillingCycle.reason string · nullable required
· Example: null Nullable: may be null when not applicable.
actions.canChangeBillingCycle.code string · nullable
· Example: pending_domain_order Nullable: may be null when not applicable.
actions.canDisableAutoRenew object required actions.canDisableAutoRenew.allowed boolean required
· Example: true actions.canDisableAutoRenew.reason string · nullable required
· Example: null Nullable: may be null when not applicable.
actions.canDisableAutoRenew.code string · nullable
· Example: pending_order Machine-readable reason code when an action is blocked.
actions.canDisableAutoRenew.requiresConfirmation string · nullable · enum required
· Example: null Nullable: may be null when not applicable.
cancel_pending_order updateOutcome object updateOutcome.pendingOrderCancelled boolean · nullable required
· Example: true True when cancelPendingOrder: true cancelled a pending renewal order; false when the cancel was attempted but no order was cancelled; null when no pending-order cancel was requested.
updateOutcome.whoisPrivacyAutoEnableUpdated boolean · nullable required
· Example: null The saved WHOIS privacy auto-enable preference, or null when the PATCH did not update that preference.
updateOutcome.syncTriggered boolean required
· Example: false True when the server had to refresh domain status before retrying the upstream write.
updateOutcome.domainStatusChanged boolean required
· Example: false True when the refresh detected that the domain status changed during the update.
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 Retry-After seconds plus X-RateLimit-* headers. 10 fields 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/domains/{id} curl -X PATCH "https://cloud.hostup.se/api/v2/domains/dom_01hxa3b4c5d6e7f8g9h0j1k2m3" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"autoRenew": false,
"cancelPendingOrder": true
}' {
"id": "dom_01hxa3b4c5d6e7f8g9h0j1k2m3",
"name": "example.com",
"serviceStatus": "active",
"orderId": "ord_01hxa3b4c5d6e7f8g9h0j1k2m3",
"lifecycle": {
"type": "registration",
"autoRenewEnabled": false,
"registrarLockEnabled": false,
"transferInProgress": false
},
"billing": {
"amount": 159,
"currencyCode": "SEK",
"billingCycle": "annually",
"periodYears": 1
},
"createdAt": "2025-04-27T09:00:00.000Z",
"expiresAt": "2027-04-27T21:59:59.000Z",
"nextDueAt": "2027-03-28T00:00:00.000Z",
"tags": [
"production"
],
"pinned": false,
"contactDetailsVerification": null,
"hostingConnection": {
"type": "hosting",
"hostingAccountId": "acct_01hxa3b4c5d6e7f8g9h0j1k2m3",
"hostingAccountName": "Webbhotell Start",
"hostingAccountDomain": "example.com",
"ssl": {
"status": "valid",
"expiresAt": "2026-08-01T00:00:00.000Z",
"issuer": "Let's Encrypt"
}
},
"nameservers": [
"primary.ns.hostup.se",
"secondary.ns.hostup.se"
],
"transfer": {
"eppCode": null
},
"notes": null,
"pendingRenewalOrder": null,
"pendingDomainOrder": null,
"registryLock": {
"enabled": false,
"requiresManualUnlockFlow": false,
"unlockAction": null
},
"whoisPrivacy": {
"enabled": null,
"autoEnable": true,
"status": "auto_enable_allowed",
"reason": null,
"updatedAt": "2026-04-20T09:30:00.000Z"
},
"actions": {
"canDelete": {
"allowed": true,
"reason": null
},
"canActivateRegistryLock": {
"allowed": false,
"reason": "Registry lock activation is not available for this domain ending.",
"code": "tld_not_supported"
},
"canRequestRegistryUnlock": {
"allowed": false,
"reason": "Domain lock is not active."
},
"canChangeBillingCycle": {
"allowed": true,
"reason": null
},
"canDisableAutoRenew": {
"allowed": true,
"reason": null,
"requiresConfirmation": null
}
},
"updateOutcome": {
"pendingOrderCancelled": true,
"whoisPrivacyAutoEnableUpdated": null,
"syncTriggered": false,
"domainStatusChanged": false
}
} {
"autoRenew": false,
"cancelPendingOrder": true
}