---
title: "Set Primary Domain"
method: PUT
path: "/sites/{site_id}/domains/{id}/primary"
tags: ["sites"]
---

# Set Primary Domain

`PUT /sites/{site_id}/domains/{id}/primary`

## Request

- Base URL: `https://my.pressable.com/v1`
- URL: `https://my.pressable.com/v1/sites/{site_id}/domains/{id}/primary`
- Auth: none declared
- TypeScript: <https://skmtc.dev/pressable/apis/pressable-api-documentation-v1/docs/sites/:site_id/domains/:id/primary/put.ts> (a function with typed inputs; its response is checked against the schema)

Set a domain as the primary domain. All other ARecord domains attached to your site will redirect to the primary domain.

## Path parameters

- `site_id` integer, required
- `id` integer, required

## Response `200`

Successful Response

- object
  - `message` string
  - `data` object

---

[API](https://skmtc.dev/pressable/apis/pressable-api-documentation-v1.md) - [All operations](https://skmtc.dev/pressable/apis/pressable-api-documentation-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/pressable/apis/pressable-api-documentation-v1/revisions/267a95219f47?raw)
