---
title: "Update an environment domain"
method: PATCH
path: "/projects/{projectId}/environments/{environmentId}/domains/{domainId}"
tags: ["Domain Management"]
---

# Update an environment domain

`PATCH /projects/{projectId}/environments/{environmentId}/domains/{domainId}`

Update the information associated with a single user-specified
domain associated with an environment.

## Path parameters

- `projectId` string, required
- `environmentId` string, required
- `domainId` string, required

## Request body

- union
  - ProdDomainStoragePatch
    - `attributes` object — Arbitrary attributes attached to this resource
    - `is_default` boolean — Is this domain default
  - ReplacementDomainStoragePatch
    - `attributes` object — Arbitrary attributes attached to this resource

## Response `default`

- AcceptedResponse
  - `status` string, required — The status text of the response
  - `code` integer, required — The status code of the response

---

[API](https://skmtc.net/upsun/apis/upsun-com-rest-api.md) · [All operations](https://skmtc.net/upsun/apis/upsun-com-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/upsun/upsun-com-rest-api/revisions/6cc88fde6435/schema)
