---
title: "Update a custom domain"
method: PATCH
path: "/scope_domain/{id}"
tags: ["Custom domain"]
---

# Update a custom domain

`PATCH /scope_domain/{id}`

Updates a custom domain assigned to a scope.

## Path parameters

- `id` string, required

## Request body

- object
  - `name` string, required — The name of the custom domain to update.
  - `status` 'pending_approval' | 'pending_hook' | 'pending_approval_denied' | 'pending' | 'creating' | 'recreating' | 'active' | 'updating' | 'updating_approval' | 'deleting' | 'deleted' | 'failed' | 'stopping' | 'stopped' | 'cancelled' — The status of the scope.

## Response `204`

The operation was successful.

- ScopeDomainResponse
  - `id` string, required — The application-wide unique ID for the custom domain.
  - `name` string, required — The name of the custom domain.
  - `type` string, required — The type of the domain.
  - `selector` object — The selector for the custom domain.
    - `organization_id` string — The organization ID.
    - `nrn` string — The NRN of entity.
    - `scope_id` string — The scope ID that the custom domains is associated with..
  - `status` 'active' | 'pending' — The status of the domain.
  - `created_at` string, date-time — The ISO-8601 UTC timestamp of when the custom domain was created.
  - `updated_at` string, date-time — The ISO-8601 UTC timestamp of when the custom domain was last updated.

## Other responses

- `4XX` — Client error responses due to invalid input or missing parameters.
- `5XX` — Server error responses indicating an issue on the API side.

---

[API](https://skmtc.dev/nullplatform/apis/nullplatform-api.md) · [All operations](https://skmtc.dev/nullplatform/apis/nullplatform-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nullplatform/nullplatform-api/revisions/1c4ea154b159/schema)
