---
title: "Update Site"
method: PUT
path: "/sites/{id}"
tags: ["sites"]
---

# Update Site

`PUT /sites/{id}`

## Request

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

Update the Display Name, PHP Version or WP Environment Type for a site.

## Path parameters

- `id` integer, required

## Request body

- object
  - `name` string
  - `php_version` unknown
  - `wp_environment_type` string

## 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)
