---
title: "Update a domain"
method: PUT
path: "/compute/{connection_id}/domain/{id}"
tags: ["compute", "domain"]
---

# Update a domain

`PUT /compute/{connection_id}/domain/{id}`

## Request

- Base URL: `http://api.unified.to`
- URL: `http://api.unified.to/compute/{connection_id}/domain/{id}`
- Auth: API key in header `authorization`

## Path parameters

- `connection_id` string, required
- `id` string, required

## Query parameters

- `fields` string[]
- `raw` string

## Request body

- ComputeDomain
  - `id` string: Unique identifier for the domain
  - `created_at` string, date-time: When the domain was added (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `updated_at` string, date-time: When the domain was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `service_id` string: The service this domain routes to
  - `name` string: The hostname (eg. app.example.com)
  - `status` 'PENDING' | 'VERIFIED' | 'FAILED' | 'OTHER': DNS/ownership verification status
  - `is_primary` boolean: Whether this is the service's primary domain
  - `redirect_url` string: Where the domain redirects, when it is a redirect
  - `metadata` ComputeMetadata[]
    - `id` string: The label, tag or metadata identifier
    - `slug` string: The label, tag or metadata key
    - `value` unknown
    - `namespace` string: The origin of the value (eg. labels, tags, metadata)
    - `format` 'TEXT' | 'NUMBER' | 'DATE' | 'BOOLEAN' | 'ARRAY' | 'OBJECT': The data type of the value
    - `extra_data` unknown
  - `raw` unknown

## Response `200`

Successful

- ComputeDomain
  - `id` string: Unique identifier for the domain
  - `created_at` string, date-time: When the domain was added (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `updated_at` string, date-time: When the domain was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `service_id` string: The service this domain routes to
  - `name` string: The hostname (eg. app.example.com)
  - `status` 'PENDING' | 'VERIFIED' | 'FAILED' | 'OTHER': DNS/ownership verification status
  - `is_primary` boolean: Whether this is the service's primary domain
  - `redirect_url` string: Where the domain redirects, when it is a redirect
  - `metadata` ComputeMetadata[]
    - `id` string: The label, tag or metadata identifier
    - `slug` string: The label, tag or metadata key
    - `value` unknown
    - `namespace` string: The origin of the value (eg. labels, tags, metadata)
    - `format` 'TEXT' | 'NUMBER' | 'DATE' | 'BOOLEAN' | 'ARRAY' | 'OBJECT': The data type of the value
    - `extra_data` unknown
  - `raw` unknown

---

[API](https://skmtc.dev/unified/apis/unified-to-api-2.md) · [All operations](https://skmtc.dev/unified/apis/unified-to-api-2/llms.txt) · [OpenAPI document](https://skmtc.dev/unified/apis/unified-to-api-2/revisions/7a38bdd7f089?raw)
