---
title: "Update Site"
method: PATCH
path: "/v2/sites/{siteId}"
tags: ["site"]
---

# Update Site

`PATCH /v2/sites/{siteId}`

Updates an existing site.

## Path parameters

- `siteId` string, uuid, required

## Headers

- `x-api-key` string, required

## Request body

- UpdateSiteV2RequestBodyDto
  - `name` string — The site name.
  - `hostOrigin` string, uri — The public URL where your site is hosted. This is the URL that Makeswift uses to render your site for editing.
  - `defaultLocale` string — The primary locale of this site.

## Response `200`

- UpdateSiteV2ResponseBodyDto
  - `object` 'site', required — The type of the object
  - `id` string, uuid, required
  - `name` string, required — The site name.
  - `hostOrigin` string, uri, nullable, required — The public URL where your site is hosted. This is the URL that Makeswift uses to render your site for editing.
  - `publicApiKey` string, uuid, required — The publishable API key that a host can use to get page and component data for rendering your site.
  - `defaultLocale` string, required — The primary locale of this site.
  - `defaultLocalePathPrefix` string, nullable
  - `localeManagementMode` 'internal' | 'external', required — Controls whether locales are managed internally via the builder or externally via API.

## Other responses

- `400`
- `403`

---

[API](https://skmtc.net/makeswift/apis/rest.md) · [All operations](https://skmtc.net/makeswift/apis/rest/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/makeswift/rest/versions/9e0c72b4d151/schema)
