---
title: "Update site"
method: PUT
path: "/orgs/{organization}/servers/{server}/sites/{site}"
tags: ["Sites"]
---

# Update site

`PUT /orgs/{organization}/servers/{server}/sites/{site}`

Update a site on the server.

Processing mode: <small><code>async</code></small>

## Path parameters

- `organization` string, required
- `server` integer, required
- `site` integer, required

## Request body

- UpdateSiteRequest
  - `root_path` string, nullable
  - `directory` string, nullable
  - `type` 'laravel' | 'symfony' | 'statamic' | 'wordpress' | 'phpmyadmin' | 'php' | 'nextjs' | 'nuxtjs' | 'static-html' | 'other' | 'custom'
  - `php_version` 'php5' | 'php56-old' | 'php56' | 'php70' | 'php71' | 'php72' | 'php73' | 'php74' | 'php80' | 'php81' | 'php82' | 'php83' | 'php84' | 'php85'
  - `push_to_deploy` boolean — Automatically trigger a new deployment when changes are pushed to the environment's Git branch.
  - `repository_branch` string, nullable

## Response `202`

Accepted

## Other responses

- `403` — Authorization error
- `404` — Not found
- `422` — Validation error

---

[API](https://skmtc.dev/mfullbrook/apis/forge.md) · [All operations](https://skmtc.dev/mfullbrook/apis/forge/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/mfullbrook/forge/revisions/24ad66d99f93/schema)
