---
title: "Add hosting configuration (bulk)"
method: POST
path: "/mcp/v1/actions/ud_dns_hosting_add"
tags: ["DNS Management"]
---

# Add hosting configuration (bulk)

`POST /mcp/v1/actions/ud_dns_hosting_add`

Configure hosting for one or more domains: for-sale listing page, permanent redirect (301), temporary redirect (302), or reverse proxy. Supports up to 50 domains per request.

## Request body

- object
  - `domains` object[], required — Array of domain hosting configurations
    - `name` string, required — Domain name
    - `type` 'LISTING_PAGE' | 'REDIRECT_301' | 'REDIRECT_302' | 'REVERSE_PROXY', required — Hosting type
    - `targetUrl` string — Destination URL (required for REDIRECT_301, REDIRECT_302, REVERSE_PROXY)
    - `subName` string — Subdomain to configure
    - `forceCompatibility` boolean — Auto-configure UD nameservers if needed

## Response `200`

Bulk operation result

- BulkDnsOperationResponse — Response for bulk DNS operations (nameservers, hosting). Contains results per domain with success/failure tracking.
  - `results` object[]
    - `domain` string — Domain name
    - `success` boolean — Whether the operation succeeded
    - `operationId` string — Track with ud_domain_pending_operations (if successful)
    - `nameservers` string[] — Configured nameservers (for nameserver operations)
    - `hasDnssec` boolean — Whether DNSSEC is configured (for nameserver operations)
    - `config` object — Hosting config (for hosting operations)
      - `type` string
      - `subName` string, nullable
      - `targetUrl` string, nullable
    - `subName` string — Subdomain removed (for hosting remove operations)
    - `deletedAll` boolean — Whether all configs were removed (for hosting remove)
    - `error` string — Error message (if failed)
  - `successCount` number — Number of successful operations
  - `failureCount` number — Number of failed operations

## Other responses

- `401` — Authentication required

---

[API](https://skmtc.net/unstoppabledomains/apis/user-api.md) · [All operations](https://skmtc.net/unstoppabledomains/apis/user-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/unstoppabledomains/user-api/versions/c1def8e34b41/schema)
