---
title: domain_update
url: "/docs/ai-agents/mcp-tools/domains/domain_update/"
canonical_url: https://docs.blossom88.com/docs/ai-agents/mcp-tools/domains/domain_update/
markdown_url: https://docs.blossom88.com/docs/ai-agents/mcp-tools/domains/domain_update.md
summary: Change a domain's Service, mode or main flag.
categories:
- mcp
- reference
---

# domain_update

Change a domain's Service, mode or main flag.

| | |
|---|---|
| Access | Changes Blossom |
| Same as | [`blossom domain:update`](/docs/reference/cli/domain/update/) |

## Arguments

| Argument | Type | Description |
|---|---|---|
| `id` | string | Domain id. Required. |
| `data` | object | Only the domain fields to change. Required. |
| `data.dns_name` | string | Domain, such as www.example.com or *.example.com. |
| `data.mode` | string | https_automated, or dns_wildcard for a wildcard. |
| `data.dns_provider_id` | string | DNS provider for a wildcard. |
| `data.service_id` | string | Public Service it routes to; web by default. |
| `data.main` | boolean | The Environment's main domain. |

## Example

```json
{"id":"domain-100","data":{"clone_url":"https://github.com/acme/shop","services":[{"name":"web","command":"web","port":3000,"publicly_exposed":true}]}}
```
