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

# Update a site

`PATCH /sites/{siteId}`

## Request

- Base URL: `https://api.universally.com`
- URL: `https://api.universally.com/sites/{siteId}`
- Auth: API key in header `X-API-Key`

Updates a site's settings. Send only the fields you want to change.

## Path parameters

- `siteId` string, required

## Request body

- object
  - `name` string
  - `domain` string
  - `sourceLanguage` string
  - `includeCssSelectors` string[]
  - `excludeCssSelectors` string[]
  - `excludeLinkLocalization` string[]
  - `excludePages` string[]
  - `tech` 'wordpress' | 'website' | 'lovable' | 'framer' | 'webflow' | 'tilda' | 'duda' | 'squarespace' | 'weebly' | 'shopify' | 'app' | 'astro'
  - `subdomain` boolean
  - `servingMode` 'plugin' | 'shopify' | 'subdomain' | 'javascript' | 'domain' | 'sdk'
  - `autoRedirect` object
    - `enabled` boolean, required
    - `overrides` object, required

## Response `200`

Success

- object
  - `success` boolean
  - `data` unknown
  - `message` string, nullable
  - `code` string

## Other responses

- `default`: Error

---

[API](https://skmtc.dev/universally/apis/universally-platform-api.md) · [All operations](https://skmtc.dev/universally/apis/universally-platform-api/llms.txt) · [OpenAPI document](https://skmtc.dev/universally/apis/universally-platform-api/revisions/d61beda7bab7?raw)
