latestOpenAPI 3.1.02026-08-1076186318.8 KB

ab648a80ca4d

WordPress Site Environments

Push a WordPress site environment

put/sites/{site_id}/environments

Path parameters

site_idstring required
Example:54fb80af-576c-4fdc-ba4f-b596c83f15a1

Request body

source_env_idstring required
target_env_idstring required
push_dbboolean
push_filesboolean
run_search_and_replaceboolean

Example request

{
  "source_env_id": "54fb80af-576c-4fdc-ba4f-b596c83f15a1",
  "target_env_id": "54fb80af-576c-4fdc-ba4f-b596c83f15a1",
  "push_db": true,
  "push_files": true,
  "run_search_and_replace": true
}

Response

Pushing environment action started. Check MyKinsta for status

operation_idstring
messagestring required
statusnumber required

Example response

{
  "operation_id": "environments:push-54fb80af-576c-4fdc-ba4f-b596c83f15a1",
  "message": "Pushing environment in progress",
  "status": 202
}