---
title: "Update a site's editable metadata"
method: PATCH
path: "/api/sites/{slug}"
tags: ["site-controller"]
---

# Update a site's editable metadata

`PATCH /api/sites/{slug}`

## Request

- Base URL: `https://api.pagegoat.com`
- URL: `https://api.pagegoat.com/api/sites/{slug}`
- Auth: HTTP bearer

## Path parameters

- `slug` string, required

## Request body

- UpdateSiteRequest: Editable site metadata. Omit any field you are not changing.
  - `name` string, nullable: New display name.
  - `slug` string, nullable: New slug. Rejected if taken or malformed.
  - `commentsEnabled` boolean, nullable: Allow new comments.
  - `hiddenFromSearch` boolean, nullable: Emit `noindex` on the viewer page. Advisory, not access control.
  - `projectId` string, uuid, nullable: Project to file this site under. Send null to unfile it; omit the field entirely to leave it where it is.

## Response `200`

OK

---

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