---
title: "Push a WordPress site environment"
method: PUT
path: "/sites/{site_id}/environments"
tags: ["WordPress Site Environments"]
---

# Push a WordPress site environment

`PUT /sites/{site_id}/environments`

## Path parameters

- `site_id` string, required

## Request body

- PushEnvironmentRequestBody
  - `source_env_id` string, required
  - `target_env_id` string, required
  - `push_db` boolean
  - `push_files` boolean
  - `run_search_and_replace` boolean

## Response `202`

Pushing environment action started. Check MyKinsta for status

- PushEnvironmentResponse
  - `operation_id` string
  - `message` string, required
  - `status` number, required

## Other responses

- `400` — One or more of the required parameters were not provided to the request
- `401` — No or invalid API key provided to the request
- `500` — Error occurred while pushing an environment

---

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