---
title: "Update site properties."
method: PATCH
path: "/v1/sites/{id}"
tags: ["Sites"]
---

# Update site properties.

`PATCH /v1/sites/{id}`

Endpoint that can be used to change limited site properties, like label.

## Path parameters

- `id` integer, required — ID of the Site you are interacting with

## Request body

- UpdateSiteRequest
  - `label` string, nullable — A label which can be used to identify the site separately from the site's domain
  - `metadata` SiteMetadata
  - `site_type` 0 | 1 | 2 — Type of site. 0 == WordPress, 1 == static site

## Response `200`

OK

- SiteResponse
  - `success` boolean — whether the request succeeded
  - `errors` string[]
  - `messages` string[], nullable

## Other responses

- `400` — Bad Request
- `401` — Authentication failed
- `403` — Not authorized to access endpoint
- `404` — Given site not found for user
- `405` — Invalid input
- `500` — Internal error

---

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