---
title: "Set Site Upstream"
method: PUT
path: "/v0/sites/{site_id}/upstream"
tags: ["sites"]
---

# Set Site Upstream

`PUT /v0/sites/{site_id}/upstream`

Sets the site upstream by creating a switch_upstream workflow. This is a potentially destructive operation that can affect site functionality.

## Path parameters

- `site_id` string, required

## Request body

- SetSiteUpstreamRequest
  - `upstream_id` string — Upstream ID to set for the site

## Response `200`

- SiteWorkflowCreationResponse
  - `active_description` string — Active description of current workflow step
  - `created_at` number, double — Creation timestamp
  - `id` string, required — Workflow ID
  - `number_of_tasks` integer — Number of tasks in the workflow
  - `type` string — Workflow type

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error
- `503` — Service Unavailable

---

[API](https://skmtc.net/pantheon/apis/pantheon-public-api-service.md) · [All operations](https://skmtc.net/pantheon/apis/pantheon-public-api-service/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pantheon/pantheon-public-api-service/revisions/94758829689e/schema)
