---
title: "Update production instance domain"
method: PUT
path: "/beta_features/domain"
tags: ["Beta Features"]
deprecated: true
---

# Update production instance domain

`PUT /beta_features/domain`

> **Deprecated.**

Change the domain of a production instance.

Changing the domain requires updating the [DNS records](https://clerk.com/docs/deployments/overview#dns-records) accordingly, deploying new [SSL certificates](https://clerk.com/docs/deployments/overview#deploy-certificates), updating your Social Connection's redirect URLs and setting the new keys in your code.

WARNING: Changing your domain will invalidate all current user sessions (i.e. users will be logged out). Also, while your application is being deployed, a small downtime is expected to occur.

## Request body

- object
  - `home_url` string — The new home URL of the production instance e.g. https://www.example.com
  - `is_secondary` boolean — Whether the domain is a secondary app.

## Response `202`

Accepted

## Other responses

- `400` — Request was not successful
- `422` — Request was not successful

---

[API](https://skmtc.net/clerk/apis/clerk-backend-api.md) · [All operations](https://skmtc.net/clerk/apis/clerk-backend-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/clerk/clerk-backend-api/revisions/cf036e7951d3/schema)
